Adds translatorTester nodejs compatibility code that doesn't break Scaffold
This commit is contained in:
parent
0b55130ca9
commit
b1e3195b5a
1 changed files with 6 additions and 5 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue