From 1beab1d3a73113d6c195f5ebdfa738d445837d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 10 Oct 2018 14:20:30 +0300 Subject: [PATCH] Don't attempt to fetch daySuffixes in Connector/Bookmarklet --- 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 eb800c97c8..dfa022eeeb 100644 --- a/chrome/content/zotero/xpcom/date.js +++ b/chrome/content/zotero/xpcom/date.js @@ -452,7 +452,7 @@ Zotero.Date = new function(){ if(!date.day) { // compile day regular expression if(!_dayRe) { - var daySuffixes = Zotero.getString ? Zotero.getString("date.daySuffixes").replace(/, ?/g, "|") : ""; + var daySuffixes = Zotero.isClient ? Zotero.getString("date.daySuffixes").replace(/, ?/g, "|") : ""; _dayRe = new RegExp("\\b([0-9]{1,2})(?:"+daySuffixes+")?\\b(.*)", "i"); }