Skip to content

Commit

Permalink
Fix demo website
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom committed Jan 21, 2021
1 parent 9d51f86 commit 954f38f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/web/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,15 @@ demoSelector.addEventListener("change", function() {
loadDemo(demoSelector.value);
});


let queryCode = getQueryVariable("code");
if (queryCode !== "") {
if (queryCode !== null) {
editor.updateCode(decodeURI(queryCode));
demoSelector.value = "custom";
} else {
loadDemo(demoKeys[0]);
}

let queryData = getQueryVariable("data");
if (queryData !== "") {
if (queryData !== null) {
db.default(decodeURI(queryCode));
} else {
db.default({
Expand Down

0 comments on commit 954f38f

Please sign in to comment.