Skip to content

Commit

Permalink
fix: variable fix in demo scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawei686 committed Nov 23, 2021
1 parent 9f77bc4 commit 97bf5b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion examples/scripts/h5-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
1 change: 0 additions & 1 deletion examples/scripts/xss-demo.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down

0 comments on commit 97bf5b5

Please sign in to comment.