2
0
Fork 0

fix: avoid exit prompt for configure when removing settings

This commit is contained in:
Lance Edgar 2024-08-28 20:02:31 -05:00
parent 749882671f
commit a54cfb46a7

View file

@ -190,7 +190,7 @@
// cf. https://stackoverflow.com/a/56551646
ThisPage.methods.beforeWindowUnload = function(e) {
if (this.settingsNeedSaved && !this.savingSettings && !this.undoChanges) {
if (this.settingsNeedSaved && !this.savingSettings && !this.undoChanges && !this.purgingSettings) {
e.preventDefault()
e.returnValue = ''
}