diff --git a/src/common/cachedTypes.js b/src/common/cachedTypes.js index 213bc0add..adfca8ee8 100644 --- a/src/common/cachedTypes.js +++ b/src/common/cachedTypes.js @@ -175,10 +175,7 @@ Zotero.Connector_Types = new function() { } }; - /** - * Passes schema to a callback - */ this.getSchema = async function() { return TypeSchema; }; -} \ No newline at end of file +} diff --git a/src/common/tools/testTranslators/testTranslators.html b/src/common/tools/testTranslators/testTranslators.html index 9b11e4ade..8d314bc5f 100644 --- a/src/common/tools/testTranslators/testTranslators.html +++ b/src/common/tools/testTranslators/testTranslators.html @@ -27,11 +27,10 @@ - - + @@ -65,4 +64,4 @@ - \ No newline at end of file + diff --git a/src/common/tools/testTranslators/translatorTester_viewer.js b/src/common/tools/testTranslators/translatorTester_viewer.js index eaf3e9e42..b37f7321b 100644 --- a/src/common/tools/testTranslators/translatorTester_viewer.js +++ b/src/common/tools/testTranslators/translatorTester_viewer.js @@ -40,7 +40,7 @@ Zotero_TranslatorTester.prototype.runTests = function(callback) { } else { // other translators get passed right through, after we get schema and preferences var me = this; - Zotero.Connector_Types.getSchema(function(schema) { + Zotero.Connector_Types.getSchema().then(function(schema) { Zotero.Connector_Types.schema = schema; Zotero.Connector_Types.init(); me._runTests(callback); @@ -57,4 +57,4 @@ Zotero.Messaging.addMessageListener("translatorTester_testDone", function(data) // call Zotero_TranslatorTester#_debug Zotero.Messaging.addMessageListener("translatorTester_debug", function(data) { _instanceData[data[0]].debug.apply(null, data[1]); -}); \ No newline at end of file +});