summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/content/dactyl.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js
index 59995171..b6c2a0a7 100644
--- a/common/content/dactyl.js
+++ b/common/content/dactyl.js
@@ -930,7 +930,11 @@ const Dactyl = Module("dactyl", {
* windows could be closed individually.
*/
quit: function (saveSession, force) {
- if (!force && !canQuitApplication())
+ if (!force &&
+ prefs.withContext(function () {
+ prefs.set("browser.warnOnQuit", false);
+ return !canQuitApplication();
+ }))
return;
let pref = "browser.startup.page";