summaryrefslogtreecommitdiff
path: root/ext/bg/js/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r--ext/bg/js/api.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js
index 9de1fb4b..f4818854 100644
--- a/ext/bg/js/api.js
+++ b/ext/bg/js/api.js
@@ -61,12 +61,8 @@ function apiNoteView(noteId) {
return utilBackend()._onApiNoteView({noteId});
}
-async function apiTemplateRender(template, data, dynamic) {
- if (dynamic) {
- return handlebarsRenderDynamic(template, data);
- } else {
- return handlebarsRenderStatic(template, data);
- }
+function apiTemplateRender(template, data, dynamic) {
+ return utilBackend()._onApiTemplateRender({template, data, dynamic});
}
async function apiCommandExec(command, params) {