fix: avoid exit prompt for configure when removing settings
This commit is contained in:
parent
749882671f
commit
a54cfb46a7
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@
|
||||||
|
|
||||||
// cf. https://stackoverflow.com/a/56551646
|
// cf. https://stackoverflow.com/a/56551646
|
||||||
ThisPage.methods.beforeWindowUnload = function(e) {
|
ThisPage.methods.beforeWindowUnload = function(e) {
|
||||||
if (this.settingsNeedSaved && !this.savingSettings && !this.undoChanges) {
|
if (this.settingsNeedSaved && !this.savingSettings && !this.undoChanges && !this.purgingSettings) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.returnValue = ''
|
e.returnValue = ''
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue