diff --git a/src/util/push-state.js b/src/util/push-state.js index c5dda83e1..dcbab672b 100644 --- a/src/util/push-state.js +++ b/src/util/push-state.js @@ -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) {