Skip to content

Commit 6e8063f

Browse files
committed
Fixed share functionality breaking browser prev/next page
1 parent e6320a1 commit 6e8063f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ document.addEventListener('DOMContentLoaded', () => {
6767
// wait one second before submitting work
6868
timerVar = setTimeout(() => {
6969
tstlWorker.postMessage({tsStr: tsEditor.getValue()});
70-
history.pushState(null, "", "/?src=" + encodeURIComponent(tsEditor.getValue()));
70+
window.location.replace("?src=" + encodeURIComponent(tsEditor.getValue()));
7171
}, 500);
7272
}))
7373

0 commit comments

Comments
 (0)