Commit 9a4122f
committed
fix(share): stop the fallback link erasing itself
When the clipboard is unavailable the link goes in the address bar
instead. Assigning location.hash fires a hashchange, which is what the
editor listens for to open a link somebody has pasted, so it read the
link straight back as an incoming one, said so, and cleared the address
bar again. Pressing Share left nothing behind and a banner claiming the
config had arrived from a link.
replaceState puts it there without the event.1 parent 15d65e0 commit 9a4122f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
558 | 563 | | |
559 | 564 | | |
560 | 565 | | |
| |||
0 commit comments