summaryrefslogtreecommitdiff
path: root/ext/js/templates/sandbox/template-renderer-frame-main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/templates/sandbox/template-renderer-frame-main.js')
-rw-r--r--ext/js/templates/sandbox/template-renderer-frame-main.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/js/templates/sandbox/template-renderer-frame-main.js b/ext/js/templates/sandbox/template-renderer-frame-main.js
index 43b17b1e..f5868aff 100644
--- a/ext/js/templates/sandbox/template-renderer-frame-main.js
+++ b/ext/js/templates/sandbox/template-renderer-frame-main.js
@@ -19,9 +19,12 @@
import {AnkiTemplateRenderer} from './anki-template-renderer.js';
import {TemplateRendererFrameApi} from './template-renderer-frame-api.js';
-(async () => {
+/** Entry point. */
+async function main() {
const ankiTemplateRenderer = new AnkiTemplateRenderer();
await ankiTemplateRenderer.prepare();
const templateRendererFrameApi = new TemplateRendererFrameApi(ankiTemplateRenderer.templateRenderer);
templateRendererFrameApi.prepare();
-})();
+}
+
+await main();