Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2014-03-14 14:45:34 +0400
committerXhmikosR <xhmikosr@gmail.com>2015-02-02 23:23:23 +0300
commit791f9b10f5485bb51843857c5ccec1706a53185e (patch)
treeee885ad68d9ea8fceab2f61dfb78d1eb953d7206
parentb46e15e7e2fef644c0274d78201350ff9671a7af (diff)
Fix one more error with Firefox.
-rw-r--r--js/push.js4
1 files changed, 3 insertions, 1 deletions
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);