Skip to content

Commit defe125

Browse files
author
druid0523
committed
1 parent 90cd269 commit defe125

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/history/hash.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export class HashHistory extends History {
2828
setupScroll()
2929
}
3030

31-
window.addEventListener(supportsPushState ? 'popstate' : 'hashchange', () => {
31+
const ua = window.navigator.userAgent
32+
const ie11 = ua.indexOf('rv:11.0') !== -1
33+
34+
window.addEventListener(supportsPushState && !ie11 ? 'popstate' : 'hashchange', () => {
3235
const current = this.current
3336
if (!ensureSlash()) {
3437
return

0 commit comments

Comments
 (0)