Commit 98b9009c authored by Mikaël Salson's avatar Mikaël Salson

js/url.js: Catch error on pushState

This may occur on old Chrome versions with file: protocol.
parent 71ea224a
......@@ -170,7 +170,11 @@ Url.prototype= {
pushUrl: function(params) {
var new_url = "?" + params;
this.window.history.pushState('plop', 'plop', new_url);
try {
this.window.history.pushState('plop', 'plop', new_url);
} catch(error) {
console.log(error);
}
},
getStraightParams: function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment