From 26ed3789641804792c4c007150868c25825f063c Mon Sep 17 00:00:00 2001 From: dunxtand Date: Tue, 17 Apr 2018 14:28:43 -0400 Subject: [PATCH] parse '{}' instead of empty object in app.js to avoid SyntaxError --- assets/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/app.js b/assets/js/app.js index 9eb8fb113a..6db94f1076 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -58,7 +58,7 @@ const pageClasses = { * @returns {*} */ window.stencilBootstrap = function stencilBootstrap(pageType, contextJSON = null, loadGlobal = true) { - const context = JSON.parse(contextJSON || {}); + const context = JSON.parse(contextJSON || '{}'); return { load() {