We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ec0ee5 commit bc41f67Copy full SHA for bc41f67
src/util/push-state.js
@@ -19,7 +19,7 @@ export const supportsPushState =
19
return false
20
}
21
22
- return window.history && 'pushState' in window.history
+ return window.history && typeof window.history.pushState === 'function'
23
})()
24
25
export function pushState (url?: string, replace?: boolean) {
0 commit comments