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

View file

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