Commit 4dba776c authored by Simon Daron's avatar Simon Daron
Browse files

handling loading error

parent 8c27c5e2
......@@ -42,7 +42,7 @@ $(function() {
new_menu = $($.parseHTML(html)).find('#metaNav>*');
$metaNav.empty().append(new_menu);
var newTitle = html.match(/<title>(.*?)<\/title>/);
var newTitle = html?html.match(/<title>(.*?)<\/title>/):'';
if(newTitle){document.title = newTitle[1].trim().decodeHTML();}
if (typeof (Piwik) == 'object') {
......
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