help3xsl/index2.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 0ddb36aafd052ca3a10c4a873f6a7b5ccf0f9c82 Author: Olivier Hallot <[email protected]> Date: Mon Mar 5 15:28:05 2018 -0300 Drop undefined navigator property Change-Id: I42a37211bfc6d6e3b91061593f252feb6c38a8b6 Reviewed-on: https://gerrit.libreoffice.org/50782 Reviewed-by: Olivier Hallot <[email protected]> Tested-by: Olivier Hallot <[email protected]> diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 43816853c..b2040fbaf 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> _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
