Skip to content

Commit

Permalink
Live viewer: fix empty string URL inputs in shared links
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Dec 14, 2021
1 parent 5f8ab9a commit 7d65406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion live-viewer/live-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
}

function setFromFragment() {
const pieces = /#url=([^&]+)&base=(.*)/u.exec(location.hash);
const pieces = /#url=([^&]*)&base=(.*)/u.exec(location.hash);
if (!pieces) {
return;
}
Expand Down

0 comments on commit 7d65406

Please sign in to comment.