Fix startup error on Windows

Regression from 8d3f874e64, which included this unfinished code by mistake.

Fixes #3196
This commit is contained in:
Dan Stillman 2023-07-14 05:47:07 -04:00
parent 0cd94555d5
commit dc321ce643

View file

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