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
This commit is contained in:
Dan Stillman 2024-01-26 07:32:34 -05:00
parent 25d9524c6a
commit 1cc5c1ce2e

View file

@ -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();