diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-11-08 12:35:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-08 12:35:32 -0500 |
commit | 12e6e377854a9163b322a16f3effe816d0222c67 (patch) | |
tree | 79783eeaa2503461608e6cb5f905f3c2fe90678b /ext/bg/js/backend.js | |
parent | 8cf10d685d52d5ae75d65c4aea4adcb6d101e9a4 (diff) |
Query parser generator refactor (#1006)
* Simplify select generation
* Refactor text generation
* Change optional argument
* Remove query-parser-templates.html
* Simplify prepare
* Simplify preview
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 5462d4c9..fe9c9c76 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -100,7 +100,6 @@ class Backend { ['clipboardGet', {async: true, contentScript: true, handler: this._onApiClipboardGet.bind(this)}], ['clipboardGetImage', {async: true, contentScript: true, handler: this._onApiClipboardImageGet.bind(this)}], ['getDisplayTemplatesHtml', {async: true, contentScript: true, handler: this._onApiGetDisplayTemplatesHtml.bind(this)}], - ['getQueryParserTemplatesHtml', {async: true, contentScript: true, handler: this._onApiGetQueryParserTemplatesHtml.bind(this)}], ['getZoom', {async: true, contentScript: true, handler: this._onApiGetZoom.bind(this)}], ['getDefaultAnkiFieldTemplates', {async: false, contentScript: true, handler: this._onApiGetDefaultAnkiFieldTemplates.bind(this)}], ['getDictionaryInfo', {async: true, contentScript: false, handler: this._onApiGetDictionaryInfo.bind(this)}], @@ -594,10 +593,6 @@ class Backend { return await this._fetchAsset('/mixed/display-templates.html'); } - async _onApiGetQueryParserTemplatesHtml() { - return await this._fetchAsset('/bg/query-parser-templates.html'); - } - _onApiGetZoom(params, sender) { if (!sender || !sender.tab) { return Promise.reject(new Error('Invalid tab')); |