summaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-04 17:57:05 -0400
committerGitHub <noreply@github.com>2020-09-04 17:57:05 -0400
commit21fc0a80f2382f383ae5df221b17313e72b809db (patch)
tree6ac00942df30bc12a1cf132fa203934cba5e7967 /ext/bg/js/backend.js
parent3efd4a1a94ddac6b0c9e0d3cf6fa7eb5621bf8a2 (diff)
Defer assignment of marker (#762)
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index e9f4f924..0c901c68 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -518,8 +518,8 @@ class Backend {
return await this._anki.guiBrowse(`nid:${noteId}`);
}
- async _onApiTemplateRender({template, data}) {
- return this._renderTemplate(template, data);
+ async _onApiTemplateRender({template, data, marker}) {
+ return this._renderTemplate(template, data, marker);
}
_onApiCommandExec({command, params}) {
@@ -1339,8 +1339,8 @@ class Backend {
return false;
}
- async _renderTemplate(template, data) {
- return await this._templateRenderer.render(template, data);
+ async _renderTemplate(template, data, marker) {
+ return await this._templateRenderer.render(template, data, marker);
}
_getTemplates(options) {