aboutsummaryrefslogtreecommitdiff
path: root/ext/js
diff options
context:
space:
mode:
authorAustin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com>2023-06-09 16:16:10 -0600
committerAustin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com>2023-06-09 16:16:10 -0600
commit206d78538ccbc5e9543ee2bb2a93442b4b432534 (patch)
treef4d748ada5eaee04dad373270bb12840ccec23ce /ext/js
parente8c62d65aab6a37ab988b135dead0f580ca0eb0b (diff)
Fix Handlebars not working on Firefox due to eval
Diffstat (limited to 'ext/js')
-rw-r--r--ext/js/templates/sandbox/template-renderer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/templates/sandbox/template-renderer.js b/ext/js/templates/sandbox/template-renderer.js
index c3548b4f..df9fd79d 100644
--- a/ext/js/templates/sandbox/template-renderer.js
+++ b/ext/js/templates/sandbox/template-renderer.js
@@ -83,7 +83,7 @@ class TemplateRenderer {
let instance = cache.get(template);
if (typeof instance === 'undefined') {
this._updateCacheSize(this._cacheMaxSize - 1);
- instance = Handlebars.compile(template);
+ instance = Handlebars[handlebarsCompileFnName](template);
cache.set(template, instance);
}