From bc41f67e99aeeb5306da7e8d6b2f2f41649196f7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 25 Mar 2020 09:49:38 +0100 Subject: [PATCH] fix: check for pushState being a function Closes #3154 --- src/util/push-state.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {