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:
Dan Stillman 2018-10-21 05:37:03 -04:00
parent 28e1d7dfb6
commit a0ca67d879

View file

@ -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"];