mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
Update svcs.js
Signed-off-by: ed <s@ocv.me>
This commit is contained in:
parent
161bbc7d26
commit
510100c86b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue