fix: avoid exit prompt for configure when removing settings
This commit is contained in:
parent
749882671f
commit
a54cfb46a7
|
@ -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…
Reference in a new issue