summaryrefslogtreecommitdiffstats
path: root/help3xsl
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-03-05 15:28:05 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-03-09 17:39:31 +0100
commit0ddb36aafd052ca3a10c4a873f6a7b5ccf0f9c82 (patch)
tree824e5288f2be17d777dbbf8d3f5d3ffa9be87a51 /help3xsl
parenttdf#72038 Improve number format recognition help (diff)
downloadhelp-0ddb36aafd052ca3a10c4a873f6a7b5ccf0f9c82.tar.gz
help-0ddb36aafd052ca3a10c4a873f6a7b5ccf0f9c82.zip
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.html5
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>