From b58def7bc4baed2eb464413f49af2d07a4bb68bc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 21 Dec 2018 02:40:18 -0500 Subject: [PATCH] Expose Zotero.Notes for translation-server/Node Needed for CSL JSON export of notes, which is pointless but better than throwing an error, I guess. --- chrome/content/zotero/xpcom/data/notes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/notes.js b/chrome/content/zotero/xpcom/data/notes.js index f2cda0d58e..70470cf38e 100644 --- a/chrome/content/zotero/xpcom/data/notes.js +++ b/chrome/content/zotero/xpcom/data/notes.js @@ -62,3 +62,6 @@ Zotero.Notes = new function() { } } +if (typeof process === 'object' && process + '' === '[object process]'){ + module.exports = Zotero.Notes; +}