diff options
author | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-03-05 15:28:05 -0300 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2018-03-09 17:39:31 +0100 |
commit | 0ddb36aafd052ca3a10c4a873f6a7b5ccf0f9c82 (patch) | |
tree | 824e5288f2be17d777dbbf8d3f5d3ffa9be87a51 /help3xsl | |
parent | 3f82ba1d59d3bf4aa5e347f8dfb76f79ffd68bb0 (diff) |
Drop undefined navigator property
Change-Id: I42a37211bfc6d6e3b91061593f252feb6c38a8b6
Reviewed-on: https://gerrit.libreoffice.org/50782
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/index2.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 43816853c1..b2040fbaf7 100644 --- a/help3xsl/index2.html +++ b/help3xsl/index2.html @@ -49,7 +49,10 @@ window.open(newURL,'_self'); }else{ // URL came from elsewhere, direct access to webroot, we redirect to main Help page - var userLang = navigator.language || navigator.userLanguage; + var userLang = navigator.language; + if(userLang === undefined ){ + userlang="en-US"; + } window.open(userLang + '/text/shared/main0108.html?&DbPAR=WRITER&System=WIN','_self'); } </script> |