Fix history navigation

This commit is contained in:
Sidharth Vinod
2021-05-29 13:08:05 +05:30
parent 7fa164f807
commit 564f0336c9
+1 -1
View File
@@ -84,7 +84,7 @@ export const updateConfig = (config: string, updateEditor: boolean): void => {
export const initURLSubscription = (): void => {
base64State.subscribe((state: string) => {
window.location.hash = state;
history.replaceState(undefined, undefined, `#${state}`);
});
};