Skip to content

Commit

Permalink
Use location.replace instead of location.reload
Browse files Browse the repository at this point in the history
  • Loading branch information
lorensr committed Feb 27, 2016
1 parent d9cf275 commit 5bc3e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mdg:reload-on-resume/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ In addition to changing the behavior of hot code push, this package provides a m

### Reload.isWaitingForResume()

A reactive function that returns `true` if a new version of the app has been downloading and the framework is waiting until the app is closed and reopened. Can be used to display a message to the user that says "new version available, restart the app to update." You can also use `window.location.reload()` to reload the page to the newest version of the app.
A reactive function that returns `true` if a new version of the app has been downloading and the framework is waiting until the app is closed and reopened. Can be used to display a message to the user that says "new version available, restart the app to update." You can also use `window.location.replace(window.location.href)` to reload the page to the newest version of the app.

0 comments on commit 5bc3e61

Please sign in to comment.