mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-06 19:51:39 +00:00
Fixes url state decoding in Firefox.
This commit is contained in:
@@ -19,7 +19,7 @@ export function updateRoute() {
|
||||
const urlStateString = window.location.hash
|
||||
.replace('#!/state/', '')
|
||||
.replace('#!/', '') || '{}';
|
||||
const prevState = JSON.parse(urlStateString);
|
||||
const prevState = JSON.parse(decodeURIComponent(urlStateString));
|
||||
|
||||
if (shouldReplaceState(prevState, state)) {
|
||||
// Replace the top of the history rather than pushing on a new item.
|
||||
|
||||
Reference in New Issue
Block a user