[Libreoffice-commits] help.git: help3xsl/index2.html

Olivier Hallot olivier.hallot at libreoffice.org
Fri Mar 9 16:40:00 UTC 2018


 help3xsl/index2.html |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 0ddb36aafd052ca3a10c4a873f6a7b5ccf0f9c82
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
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 <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

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>


More information about the Libreoffice-commits mailing list