summaryrefslogtreecommitdiff
path: root/ext/bg/js/settings
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-18 21:16:39 -0400
committerGitHub <noreply@github.com>2020-09-18 21:16:39 -0400
commit2f4adbab2cbefba1898b4ce6f8ff5e03622cfd34 (patch)
tree3c93a79e9f426b53ad30db0906b3b73d25834afc /ext/bg/js/settings
parente9d6c4cc928516647172c5ba3c938126390adfa2 (diff)
Handlebars sandbox (#612)
* Set up template renderer proxy * Use proxy * Remove unused handlebars script tags * Update manifest
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r--ext/bg/js/settings/anki-templates-controller.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/settings/anki-templates-controller.js b/ext/bg/js/settings/anki-templates-controller.js
index c53e4553..c980bfa2 100644
--- a/ext/bg/js/settings/anki-templates-controller.js
+++ b/ext/bg/js/settings/anki-templates-controller.js
@@ -17,7 +17,7 @@
/* global
* AnkiNoteBuilder
- * TemplateRenderer
+ * TemplateRendererProxy
* api
*/
@@ -28,7 +28,7 @@ class AnkiTemplatesController {
this._cachedDefinitionValue = null;
this._cachedDefinitionText = null;
this._defaultFieldTemplates = null;
- this._templateRenderer = new TemplateRenderer();
+ this._templateRenderer = new TemplateRendererProxy();
}
async prepare() {