Skip to content

Commit bc41f67

Browse files
committed
fix: check for pushState being a function
Closes #3154
1 parent 6ec0ee5 commit bc41f67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/push-state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const supportsPushState =
1919
return false
2020
}
2121

22-
return window.history && 'pushState' in window.history
22+
return window.history && typeof window.history.pushState === 'function'
2323
})()
2424

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

0 commit comments

Comments
 (0)