Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5178 from darkdh/5177
Browse files Browse the repository at this point in the history
Handle reload by setUrl in window store
  • Loading branch information
bbondy committed Oct 27, 2016
2 parents fc9902c + e25fc58 commit badd82d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/components/frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,11 @@ class Frame extends ImmutableComponent {
// In this case both the user display and the user think they're on this.props.location.
if (this.webview.getURL() !== this.props.location && !this.isAboutPage()) {
this.webview.loadURL(this.props.location)
} else if (this.isIntermediateAboutPage()) {
this.webview.loadURL(this.props.aboutDetails.get('url'))
} else if (this.isIntermediateAboutPage() &&
this.webview.getURL() !== this.props.location &&
this.webview.getURL() !== this.props.aboutDetails.get('url')) {
windowActions.setUrl(this.props.aboutDetails.get('url'),
this.props.aboutDetails.get('frameKey'))
} else {
this.webview.reload()
}
Expand Down

0 comments on commit badd82d

Please sign in to comment.