From 791f9b10f5485bb51843857c5ccec1706a53185e Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Fri, 14 Mar 2014 12:45:34 +0200 Subject: [PATCH] Fix one more error with Firefox. --- js/push.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/push.js b/js/push.js index 02d6af5..8d091a1 100644 --- a/js/push.js +++ b/js/push.js @@ -60,7 +60,9 @@ delete cacheMapping[cacheBackStack.shift()]; } - window.history.pushState(null, '', getCached(PUSH.id).url); + if (getCached(PUSH.id).url) { + window.history.pushState(null, '', getCached(PUSH.id).url); + } cacheMapping.cacheForwardStack = JSON.stringify(cacheForwardStack); cacheMapping.cacheBackStack = JSON.stringify(cacheBackStack);