From e9620c977aa230001f3c158f10431f70b32849ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 6 Dec 2013 18:39:10 +0100 Subject: [PATCH] Fix a javascript error on Webkit browsers. fix #122 --- util.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util.js b/util.js index 3c5b88d..a99e981 100644 --- a/util.js +++ b/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);