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
var includeTranslators = [];
try {
Zotero;
}
catch (e) {
var Zotero;
if (typeof window != "undefined") {
window.Zotero = window.Zotero;
} else if (typeof global != 'undefined') {
global.Zotero = global.Zotero;
} else if (typeof this != 'undefined') {
this.Zotero = this.Zotero;
}
var Zotero_TranslatorTesters = new function() {