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

Commit

Permalink
typo: window.location.{push,replace}State
Browse files Browse the repository at this point in the history
They're actually on window.history, as indicated in the example code that follows it.
  • Loading branch information
Max Waterman authored Nov 27, 2016
1 parent fda388f commit 70d9799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ location. It also listens for that same event, and re-reads the URL when it's
fired. This makes it very easy to interop with other routing code.

So for example if you want to navigate to `/new_path` imperatively you could
call `window.location.pushState` or `window.location.replaceState` followed by
call `window.history.pushState` or `window.history.replaceState` followed by
firing a `location-changed` event on `window`. i.e.

```javascript
Expand Down

0 comments on commit 70d9799

Please sign in to comment.