]> git.0d.be Git - panikweb.git/commitdiff
handling loading error
authorlaron <simon@surlaterre.org>
Sun, 8 Sep 2013 10:14:07 +0000 (12:14 +0200)
committerlaron <simon@surlaterre.org>
Sun, 8 Sep 2013 10:14:07 +0000 (12:14 +0200)
panikweb_templates/static/js/specifics.js

index c1660544439ec7080b533dc071e811f70fdd0b02..360ae59347095f9eb1137564ce63d028ac75715b 100644 (file)
@@ -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') {