Update svcs.js

Signed-off-by: ed <s@ocv.me>
This commit is contained in:
ed 2025-07-28 19:31:37 +00:00 committed by GitHub
parent 161bbc7d26
commit 510100c86b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,9 +49,7 @@ function setos(os) {
setos(WINDOWS ? 'win' : LINUX ? 'lin' : MACOS ? 'mac' : 'idk');
pwbutton = ebi('setpw')
if (pwbutton != null)
pwbutton.onclick = function (e) {
function setpw() {
ev(e);
modal.prompt('password:', '', function (v) {
if (!v)
@ -67,3 +65,5 @@ if (pwbutton != null)
add_dls();
});
}
if (ebi('setpw'))
ebi('setpw').onclick = setpw;