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'); } }