Commit 3a0bc4d7 authored by fred's avatar fred

js: don't abort on security error playing with history

parent aabb7b14
......@@ -68,7 +68,7 @@ $(function() {
})[0];
if (canonical_href_node) {
canonical_href = canonical_href_node.attributes['href'].value;
history.replaceState({}, '', canonical_href);
try { history.replaceState({}, '', canonical_href); } catch(ex) {};
}
new_menu = $($.parseHTML(html)).find('#metaNav>*');
......
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