Commit 93c4360
committed
playground: don't rewrite the URL bar when clicking examples
Clicking an example called history.replaceState to set ?cmd= to that
command, so the address bar kept flipping between examples (e.g. grep
then sed) as you tried them. Running an example shouldn't rewrite the
URL out from under the user; the Copy share link button remains the way
to turn the last command into a shareable ?cmd= URL.1 parent f34ab93 commit 93c4360
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | 169 | | |
171 | 170 | | |
172 | 171 | | |
| |||
0 commit comments