diff --git a/examples/scripts/h5-demo.js b/examples/scripts/h5-demo.js index 45d9cbf98..983c3785e 100644 --- a/examples/scripts/h5-demo.js +++ b/examples/scripts/h5-demo.js @@ -95,6 +95,6 @@ var cherryConfig = { }; fetch('./markdown/basic.md').then((response) => response.text()).then((value) => { - var config = Object.assign({}, basicConfig, { value: value }); + var config = Object.assign({}, cherryConfig, { value: value }); window.cherry = new Cherry(config); }); diff --git a/examples/scripts/xss-demo.js b/examples/scripts/xss-demo.js index cbc140420..76f249f01 100644 --- a/examples/scripts/xss-demo.js +++ b/examples/scripts/xss-demo.js @@ -1,5 +1,4 @@ fetch('./markdown/xss.md').then((response) => response.text()).then((value) => { - var config = Object.assign({}, cherryConfig, { value: value }); window.cherry = new Cherry({ id: 'markdown', engine: {