From b80c405da44e716a3cde541903c030a90de5c060 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 12 Nov 2018 00:38:06 -0500 Subject: [PATCH] Revert "Changes for translator tester compatibility with translation server" This reverts commit e526a8fa89a9597c67988be53dd7ef0cfa9ac10e. This is a repeat of a0ca67d879. The reverted changes break Scaffold. This will need to be fixed in a way that allows Scaffold to continue to work. --- .../zotero/tools/testTranslators/translatorTester.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 51b1912b55..a56244b919 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -30,7 +30,12 @@ var EXPORTED_SYMBOLS = ["Zotero_TranslatorTesters"]; // For debugging specific translators by label var includeTranslators = []; -this.Zotero = typeof Zotero != 'undefined' ? Zotero : null; +try { + Zotero; +} +catch (e) { + var Zotero; +} var Zotero_TranslatorTesters = new function() { const TEST_TYPES = ["web", "import", "export", "search"];