Fix a javascript error on Webkit browsers. fix #122

This commit is contained in:
Sébastien Lucas 2013-12-06 18:39:10 +01:00
parent f103d909e1
commit e9620c977a
1 changed files with 4 additions and 0 deletions

View File

@ -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);