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

Commit

Permalink
Reset preview window URL instead of merely reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHenninger committed Jul 27, 2017
1 parent 3bd6682 commit 6505a48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/builder/src/logic/io/preview/PreviewWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ export default class Preview {
}

reload() {
this.window.location.reload()
// Reset window location instead of merely reloading,
// to make sure that the URL preview is correct.
this.window.location = this.url
}

focus() {
Expand Down

0 comments on commit 6505a48

Please sign in to comment.