Fix a javascript error on Webkit browsers. fix #122
This commit is contained in:
parent
f103d909e1
commit
e9620c977a
4
util.js
4
util.js
|
@ -395,6 +395,10 @@ function handleLinks () {
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onpopstate = function(event) {
|
window.onpopstate = function(event) {
|
||||||
|
if (!isDefined (currentData)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
before = new Date ();
|
before = new Date ();
|
||||||
var data = cache.get (event.state);
|
var data = cache.get (event.state);
|
||||||
updatePage (data);
|
updatePage (data);
|
||||||
|
|
Loading…
Reference in a new issue