We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3811553 commit 9081e9dCopy full SHA for 9081e9d
live-view/live-view.js
@@ -620,14 +620,14 @@ if (isMobile) {
620
// replace URL in window address bar
621
liveViewWindow.addEventListener('DOMContentLoaded', () => {
622
623
- liveViewWindow.window.history.pushState({}, 'Codeit', window.location.origin + '/full/run');
+ liveViewWindow.window.history.pushState({url: liveViewURL}, 'Codeit', window.location.origin + '/full/run');
624
625
});
626
627
liveViewWindow.addEventListener('beforeunload', () => {
628
629
- liveViewWindow.window.location.href = liveViewURL;
630
-
+ liveViewWindow.window.location.href = liveViewWindow.window.history.state.url;
+
631
632
633
0 commit comments