Skip to content

Commit 502db29

Browse files
authored
Leave !hasHistory check.
Seems the previous condition should be left completely. Only additional behavior needed.
1 parent a972414 commit 502db29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
_window.document.removeEventListener(clickEvent, this.clickHandler, false);
8282
}
8383

84-
if(this._hashbang && hasWindow && !this._popstate) {
84+
if(this._hashbang && hasWindow && (!hasHistory || !this._popstate)) {
8585
_window.addEventListener('hashchange', this._onpopstate, false);
8686
} else if(hasWindow) {
8787
_window.removeEventListener('hashchange', this._onpopstate, false);

0 commit comments

Comments
 (0)