Revert part of 5b3b1f0f1
to fix Scaffold breakage
I didn't look into the details, but `this` isn't defined when this file is loaded within Scaffold, so this line caused an error and the translator tester was broken.
This commit is contained in:
parent
28e1d7dfb6
commit
a0ca67d879
1 changed files with 6 additions and 1 deletions
|
@ -30,7 +30,12 @@ var EXPORTED_SYMBOLS = ["Zotero_TranslatorTesters"];
|
|||
// For debugging specific translators by label
|
||||
var includeTranslators = [];
|
||||
|
||||
this.Zotero = Zotero;
|
||||
try {
|
||||
Zotero;
|
||||
}
|
||||
catch (e) {
|
||||
var Zotero;
|
||||
}
|
||||
|
||||
var Zotero_TranslatorTesters = new function() {
|
||||
const TEST_TYPES = ["web", "import", "export", "search"];
|
||||
|
|
Loading…
Reference in a new issue