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