Skip to content

Commit

Permalink
fix: check for pushState being a function
Browse files Browse the repository at this point in the history
Closes #3154
  • Loading branch information
posva committed Mar 25, 2020
1 parent 6ec0ee5 commit bc41f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/push-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const supportsPushState =
return false
}

return window.history && 'pushState' in window.history
return window.history && typeof window.history.pushState === 'function'
})()

export function pushState (url?: string, replace?: boolean) {
Expand Down

0 comments on commit bc41f67

Please sign in to comment.