diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-07-15 06:37:45 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-07-15 06:37:45 +0300 |
commit | 37f49aef8fe2f48e817b8e60f43d49a3e4c49673 (patch) | |
tree | 0e675ee7a26fe45e548d56e455e0b67e1f435469 /js | |
parent | 0913140d1ff894f0e942a71ecd2cd2c7c3db7d7d (diff) |
Fix the JS tests on Chrome
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js index 2f7af0ba4c..07c921b1bb 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -2807,7 +2807,7 @@ if (typeof window.Piwik !== 'object') { configCustomUrl, // Document title - configTitle = documentAlias.title, + configTitle = '', // Extensions to be treated as download links configDownloadExtensions = ['7z','aac','apk','arc','arj','asf','asx','avi','azw3','bin','csv','deb','dmg','doc','docx','epub','exe','flv','gif','gz','gzip','hqx','ibooks','jar','jpg','jpeg','js','mobi','mp2','mp3','mp4','mpg','mpeg','mov','movie','msi','msp','odb','odf','odg','ods','odt','ogg','ogv','pdf','phps','png','ppt','pptx','qt','qtm','ra','ram','rar','rpm','sea','sit','tar','tbz','tbz2','bz','bz2','tgz','torrent','txt','wav','wma','wmv','wpd','xls','xlsx','xml','z','zip'], @@ -2949,6 +2949,13 @@ if (typeof window.Piwik !== 'object') { // Domain hash value domainHash; + // Document title + try { + configTitle = documentAlias.title; + } catch(e) { + configTitle = ''; + } + /* * Set cookie value */ |