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

View File

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