Skip to content

Commit 408600c

Browse files
author
zhangxinxu
committed
Only FF in iframe
Only FF in iframe
1 parent eaa8275 commit 408600c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/mobilebone.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,10 @@
9797
Mobilebone.pushStateEnabled = true;
9898

9999
if (// When running inside a FF iframe, calling replaceState causes an error. So set 'pushStateEnabled = false'
100-
!( window.navigator.userAgent.indexOf( "Firefox" ) >= 0 && window.top !== window ) &&
101-
( window.navigator.userAgent.search(/CriOS/) === -1 )
100+
(window.navigator.userAgent.indexOf( "Firefox" ) >= 0 && window.top !== window)
102101
) {
103-
Mobilebone.pushStateEnabled = false;
104-
}
102+
Mobilebone.pushStateEnabled = false;
103+
}
105104

106105

107106
/**

0 commit comments

Comments
 (0)