Skip to content

Commit d55344e

Browse files
authored
Merge pull request #1204 from dunxtand/master
parse '{}' instead of empty object in app.js to avoid SyntaxError
2 parents 7f39c22 + 26ed378 commit d55344e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const pageClasses = {
5858
* @returns {*}
5959
*/
6060
window.stencilBootstrap = function stencilBootstrap(pageType, contextJSON = null, loadGlobal = true) {
61-
const context = JSON.parse(contextJSON || {});
61+
const context = JSON.parse(contextJSON || '{}');
6262

6363
return {
6464
load() {

0 commit comments

Comments
 (0)