Merge pull request #1298 from JeLuF/confix

Fix confirmation dialog
This commit is contained in:
cmdr2 2023-05-25 07:19:21 +05:30 committed by GitHub
commit 523131de79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -264,7 +264,7 @@ function shiftOrConfirm(e, prompt, fn) {
confirm(
'<small>Tip: To skip this dialog, use shift-click or disable the "Confirm dangerous actions" setting in the Settings tab.</small>',
prompt,
fn
() => { fn(e) }
)
}
}

View File

@ -918,9 +918,7 @@ function confirm(msg, title, fn) {
animateFromElement: false,
content: msg,
buttons: {
yes: () => {
fn(e)
},
yes: fn,
cancel: () => {},
},
})