Skip to content

Commit

Permalink
Merge pull request #112 from rzk-lang/fix-playground-snippet-param
Browse files Browse the repository at this point in the history
Fix snippet param in the Rzk Playground
  • Loading branch information
fizruk authored Oct 1, 2023
2 parents a922f6a + 37f3303 commit cce9431
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 cce9431

Please sign in to comment.