From f3c345afaf28744fb068d0270f8450ee83b49016 Mon Sep 17 00:00:00 2001 From: fenqiu~ Date: Sun, 17 Mar 2019 23:06:54 +0800 Subject: [PATCH] add 'return' modified: modules/DOMUtils.js --- modules/DOMUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/DOMUtils.js b/modules/DOMUtils.js index 11084159b..95c3a6ea6 100644 --- a/modules/DOMUtils.js +++ b/modules/DOMUtils.js @@ -50,5 +50,5 @@ export function supportsGoWithoutReloadUsingHash() { * containing undefined state when pressing the back button. */ export function isExtraneousPopstateEvent(event) { - event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; + return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; }