From 97bf5b5ecb6a1941976553842ed9e84aa3f0b7cd Mon Sep 17 00:00:00 2001 From: jiawei686 <892001108@qq.com> Date: Tue, 23 Nov 2021 17:38:52 +0800 Subject: [PATCH] fix: variable fix in demo scripts --- examples/scripts/h5-demo.js | 2 +- examples/scripts/xss-demo.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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: {