Adds translatorTester nodejs compatibility code that doesn't break Scaffold

This commit is contained in:
Adomas Venčkauskas 2018-11-13 13:24:59 +02:00
parent 0b55130ca9
commit b1e3195b5a

View file

@ -30,11 +30,12 @@ var EXPORTED_SYMBOLS = ["Zotero_TranslatorTesters"];
// For debugging specific translators by label // For debugging specific translators by label
var includeTranslators = []; var includeTranslators = [];
try { if (typeof window != "undefined") {
Zotero; window.Zotero = window.Zotero;
} } else if (typeof global != 'undefined') {
catch (e) { global.Zotero = global.Zotero;
var Zotero; } else if (typeof this != 'undefined') {
this.Zotero = this.Zotero;
} }
var Zotero_TranslatorTesters = new function() { var Zotero_TranslatorTesters = new function() {