aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/template-renderer-frame-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/template-renderer-frame-main.js')
-rw-r--r--ext/bg/js/template-renderer-frame-main.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/bg/js/template-renderer-frame-main.js b/ext/bg/js/template-renderer-frame-main.js
index 1bd7e086..92a8095e 100644
--- a/ext/bg/js/template-renderer-frame-main.js
+++ b/ext/bg/js/template-renderer-frame-main.js
@@ -24,6 +24,12 @@
(() => {
const japaneseUtil = new JapaneseUtil(null);
const templateRenderer = new TemplateRenderer(japaneseUtil);
+ templateRenderer.registerDataType('ankiNote', {
+ modifier: ({data, marker}) => {
+ data.marker = marker;
+ return data;
+ }
+ });
const api = new TemplateRendererFrameApi(templateRenderer);
api.prepare();
})();