diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-08-15 09:06:34 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-08-15 11:22:02 +0200 |
commit | 5301ace8b56e7e32548366e4bf6883a2d964837b (patch) | |
tree | 6a4245a3090217652b4564ef80e0e84abb666428 /help3xsl | |
parent | 77740035a0c95abac64eedd7eac54c210feaa447 (diff) |
Try to detect the system at least a bit.
Change-Id: I5c5243d56cf85eeb7cd857c7d9f6da5cd305b429
Reviewed-on: https://gerrit.libreoffice.org/59046
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'help3xsl')
-rw-r--r-- | help3xsl/index2.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/help3xsl/index2.html b/help3xsl/index2.html index 8b58a4f6e0..e09b68e6f9 100644 --- a/help3xsl/index2.html +++ b/help3xsl/index2.html @@ -21,7 +21,7 @@ // the URL came from LibreOffice help (F1) var target = getParameterByName("Target",url); var lang = existingLang(getParameterByName("Language", url)); - var system = getParameterByName("System",url); + var system = getParameterByName("System", url); var module; var defaultFile; var smodule = target.substr(0, target.indexOf('/')); @@ -54,7 +54,10 @@ window.location.href = newURL; } else { // URL came from elsewhere, direct access to webroot, we redirect to main Help page - window.location.href = existingLang(navigator.language) + '/text/shared/main0108.html?&DbPAR=WRITER&System=WIN'; + var system = 'WIN'; + if (navigator.userAgent.indexOf("Mac") != -1) system = 'MAC'; + if (navigator.userAgent.indexOf("Linux") != -1) system = 'UNIX'; + window.location.href = existingLang(navigator.language) + '/text/shared/main0108.html?&DbPAR=WRITER&System=' + system; } </script> </body> |