diff --git a/src/wuttaweb/templates/configure.mako b/src/wuttaweb/templates/configure.mako index 20878a3..63ba963 100644 --- a/src/wuttaweb/templates/configure.mako +++ b/src/wuttaweb/templates/configure.mako @@ -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 = '' }