diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-03-31 20:07:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 20:07:11 -0400 |
commit | 5d7309ed5474a9fb67b9cae1b1176bc10bde6115 (patch) | |
tree | 3dd2f58e8b365298d5a75a3a360899803b67e0b8 /ext/js/templates/template-renderer-proxy.js | |
parent | da612bbdd7c5ac15ed64497666f6415c525c823f (diff) |
Log Anki data (#1579)
* Remove unused modifierPost
* Add _getModifier
* Add _getModifiedData
* Add getModifiedData
* Add getRenderingData
* Update logging to also log anki note data
* Fix dangling comma
Diffstat (limited to 'ext/js/templates/template-renderer-proxy.js')
-rw-r--r-- | ext/js/templates/template-renderer-proxy.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/js/templates/template-renderer-proxy.js b/ext/js/templates/template-renderer-proxy.js index 6a49832b..aba45e6c 100644 --- a/ext/js/templates/template-renderer-proxy.js +++ b/ext/js/templates/template-renderer-proxy.js @@ -30,6 +30,11 @@ class TemplateRendererProxy { return await this._invoke('render', {template, data, type}); } + async getModifiedData(data, type) { + await this._prepareFrame(); + return await this._invoke('getModifiedData', {data, type}); + } + // Private async _prepareFrame() { |