From 1cc5c1ce2e72ad73cf2657fe36404204b6c895a4 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 26 Jan 2024 07:32:34 -0500 Subject: [PATCH] Disable automatic safe mode for now Until we can figure out why some shutdowns are counting as crashes https://github.com/zotero/zotero/issues/3196 --- chrome/content/zotero/xpcom/zotero.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index fe809e3dcb..cb28b231cb 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -246,11 +246,11 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); // Browser Zotero.browser = "g"; - if (this.isWin) { - let branch = Services.prefs.getBranch("toolkit.startup."); - if (branch.getIntPref('recent_crashes', 0) > 2) { - branch.clearUserPref('recent_crashes'); - } + // TEMP: Disable automatic safe mode until we can figure out why some shutdowns are + // counting as crashes + var branch = Services.prefs.getBranch("toolkit.startup."); + if (branch.getIntPref('recent_crashes', 0) > 2) { + branch.clearUserPref('recent_crashes'); } Zotero.Intl.init();