From 5d7309ed5474a9fb67b9cae1b1176bc10bde6115 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 31 Mar 2021 20:07:11 -0400 Subject: 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 --- ext/js/templates/template-renderer-proxy.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/js/templates/template-renderer-proxy.js') 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() { -- cgit v1.2.3