diff options
author | praschke <stel@comfy.monster> | 2023-10-17 21:23:47 +0100 |
---|---|---|
committer | praschke <stel@comfy.monster> | 2023-10-17 21:23:47 +0100 |
commit | 9a78edaee74a8355d49ec930c82e118518d5d625 (patch) | |
tree | 7553667f28c5ab5e49d6060357efb3628c14116b /ext/js | |
parent | 0506cfbee5443635ebd6ac79054b85f171775039 (diff) |
fix: dumpObject
Diffstat (limited to 'ext/js')
-rw-r--r-- | ext/js/templates/sandbox/anki-template-renderer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/templates/sandbox/anki-template-renderer.js b/ext/js/templates/sandbox/anki-template-renderer.js index 789f0942..9e0bc8ed 100644 --- a/ext/js/templates/sandbox/anki-template-renderer.js +++ b/ext/js/templates/sandbox/anki-template-renderer.js @@ -134,8 +134,8 @@ class AnkiTemplateRenderer { // Template helpers - _dumpObject(context, options) { - const dump = JSON.stringify(options.fn(context), null, 4); + _dumpObject(context, object) { + const dump = JSON.stringify(object, null, 4); return this._escape(dump); } |