diff options
Diffstat (limited to 'app/node_modules/oktemplate')
| -rw-r--r-- | app/node_modules/oktemplate/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/node_modules/oktemplate/index.js b/app/node_modules/oktemplate/index.js index 09a78bf..65f8c18 100644 --- a/app/node_modules/oktemplate/index.js +++ b/app/node_modules/oktemplate/index.js @@ -15,7 +15,11 @@ liquid.registerFilters({ * Useful for quick debugging of template data. */ stringify: function(obj) { - return '<pre>' + stringify(obj) + '</pre>'; + try { + return '<pre>' + stringify(obj) + '</pre>'; + } catch (e) { + return ''; + } } }); |
