Commit 60454fc
committed
Fix loading code from URI
Previously, if you hit the "Copy URL" button and visit the URL in a
different tab, you would not get the code that you had in the editor.
For example, try https://try.ruby-lang.org/playground/#code=no&engine=cruby-3.2.0dev
Additionally, if you edit the code in the URL and hit enter, you'd get a
error in the JS console.
Both of these issue were caused by getting a string back that start with
a '#'. Delete this prefix.1 parent b32cbad commit 60454fc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
0 commit comments