Skip to content

Commit

Permalink
Fix snippet param in the Rzk Playground
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Sep 30, 2023
1 parent a922f6a commit 37f3303
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions try-rzk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@
/* use default snippet if one is not set in the query parameters */
if (params.has("snippet")) {
snippet = decodeURIComponent(params.get("snippet"));
myCodeMirror.setValue(snippet);
} else if (params.has("snippet_url")) {
snippet_url = decodeURIComponent(params.get("snippet_url"));
fetch(snippet_url).then(function (response) {
Expand Down

0 comments on commit 37f3303

Please sign in to comment.