embed: update embed deeplink to use replaceState instead of hash assign

This commit is contained in:
Ilya Kreymer
2020-05-19 12:50:48 -07:00
parent ab8e051ff0
commit abd5060d20
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ class EmbedRWP extends LitElement
url: event.data.url,
ts: event.data.ts,
});
window.location.hash = "#" + currHash.toString();
const url = new URL(window.location.href);
url.hash = "#" + currHash.toString();
window.history.replaceState({}, "", url);
}
});