mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 20:14:37 -04:00
Clean code.
This commit is contained in:
parent
594653a753
commit
530e9c3859
1 changed files with 3 additions and 3 deletions
|
@ -178,10 +178,10 @@ modulejs.define('core/location', ['_', 'modernizr', 'core/event', 'core/notify',
|
|||
|
||||
|
||||
if (history) {
|
||||
window.onpopstate = function (e) {
|
||||
window.onpopstate = function (ev) {
|
||||
|
||||
if (e.state && e.state.absHref) {
|
||||
setLocation(e.state.absHref, true);
|
||||
if (ev.state && ev.state.absHref) {
|
||||
setLocation(ev.state.absHref, true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue