diff options
author | Austin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com> | 2023-06-09 16:16:10 -0600 |
---|---|---|
committer | Austin Siew <17107540+Aquafina-water-bottle@users.noreply.github.com> | 2023-06-09 16:16:10 -0600 |
commit | 206d78538ccbc5e9543ee2bb2a93442b4b432534 (patch) | |
tree | f4d748ada5eaee04dad373270bb12840ccec23ce /ext/js/templates | |
parent | e8c62d65aab6a37ab988b135dead0f580ca0eb0b (diff) |
Fix Handlebars not working on Firefox due to eval
Diffstat (limited to 'ext/js/templates')
-rw-r--r-- | ext/js/templates/sandbox/template-renderer.js | 2 |
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); } |