From 9737a4d974270bc4474189b81b074a4c6bd0eed0 Mon Sep 17 00:00:00 2001 From: Sylvester Keil Date: Fri, 13 Jul 2018 14:03:23 +0200 Subject: [PATCH] Initialize Dates in Electron --- chrome/content/zotero/xpcom/date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/date.js b/chrome/content/zotero/xpcom/date.js index 33381eedda..c622f5cb3f 100644 --- a/chrome/content/zotero/xpcom/date.js +++ b/chrome/content/zotero/xpcom/date.js @@ -43,7 +43,7 @@ Zotero.Date = new function(){ var _monthsWithEnglish; this.init = function () { - if (!Zotero.isFx || Zotero.isBookmarklet) { + if (!(Zotero.isFx || Zotero.isElectron) || Zotero.isBookmarklet) { throw new Error("Unimplemented"); }