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