Browse Source

Catch NS_ERROR_FAILURE error in Firefox

Thibaut Courouble 10 years ago
parent
commit
7781791964
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/lib/page.coffee

+ 1 - 1
assets/javascripts/lib/page.coffee

@@ -90,7 +90,7 @@ class Context
     return
 
   replaceState: ->
-    history.replaceState @state, '', @path
+    try history.replaceState @state, '', @path # NS_ERROR_FAILURE in Firefox
     return
 
 class Route