Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit 6505a48

Browse files
Reset preview window URL instead of merely reloading
1 parent 3bd6682 commit 6505a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/builder/src/logic/io/preview/PreviewWindow.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ export default class Preview {
3535
}
3636

3737
reload() {
38-
this.window.location.reload()
38+
// Reset window location instead of merely reloading,
39+
// to make sure that the URL preview is correct.
40+
this.window.location = this.url
3941
}
4042

4143
focus() {

0 commit comments

Comments
 (0)