From dc321ce643c69f70ad0ace27c39a5db391f9521d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 14 Jul 2023 05:47:07 -0400 Subject: [PATCH] Fix startup error on Windows Regression from 8d3f874e64, which included this unfinished code by mistake. Fixes #3196 --- chrome/content/zotero/xpcom/zotero.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 2ad082b4ae..15818cf6c8 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -232,7 +232,7 @@ Services.scriptloader.loadSubScript("resource://zotero/polyfill.js"); if (this.isWin) { let branch = Services.prefs.getBranch("toolkit.startup."); - if (branch.getUserPref('recent_crashes') > 2) { + if (branch.getIntPref('recent_crashes', 0) > 2) { branch.clearUserPref('recent_crashes'); } }