diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-14 21:25:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 21:25:25 -0500 |
commit | 853faaf48c63b6efba09d3de0c0c508f7c24ff50 (patch) | |
tree | 4411d78032b2a7e595a2d573ab0e3fd264788a51 /ext/bg/js/backend.js | |
parent | 548c67ef1ce2a0aa8859dc458e003a98ad5b9ed6 (diff) | |
parent | 4dd4926672b4db39721c10a3941246ab1225f988 (diff) |
Merge pull request #358 from toasted-nutbread/general-refactoring
General refactoring
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r-- | ext/bg/js/backend.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 7b2ec46d..da50bade 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -18,7 +18,7 @@ /*global optionsSave, utilIsolate conditionsTestValue, profileConditionsDescriptor, profileOptionsGetDefaultFieldTemplates -handlebarsRenderDynamic, handlebarsRenderStatic +handlebarsRenderDynamic requestText, requestJson, optionsLoad dictConfigured, dictTermsSort, dictEnabledSet, dictNoteFormat audioGetUrl, audioInject @@ -459,12 +459,8 @@ class Backend { return this.anki.guiBrowse(`nid:${noteId}`); } - async _onApiTemplateRender({template, data, dynamic}) { - return ( - dynamic ? - handlebarsRenderDynamic(template, data) : - handlebarsRenderStatic(template, data) - ); + async _onApiTemplateRender({template, data}) { + return handlebarsRenderDynamic(template, data); } async _onApiCommandExec({command, params}) { |