Export ZOTERO_CONFIG when required as CommonJS

This commit is contained in:
Sylvester Keil 2018-06-29 11:38:12 +02:00 committed by Adomas Venčkauskas
parent 892b37db8b
commit 31395e9516

View file

@ -28,4 +28,8 @@ var ZOTERO_CONFIG = {
CONNECTORS_URL: "https://www.zotero.org/download/connectors" CONNECTORS_URL: "https://www.zotero.org/download/connectors"
}; };
EXPORTED_SYMBOLS = ["ZOTERO_CONFIG"]; if (typeof process === 'object' && process + '' === '[object process]'){
module.exports = ZOTERO_CONFIG;
} else {
EXPORTED_SYMBOLS = ["ZOTERO_CONFIG"];
}