summaryrefslogtreecommitdiff
path: root/help3xsl/help.js
diff options
context:
space:
mode:
authorIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2019-03-22 12:06:44 +0200
committerOlivier Hallot <olivier.hallot@libreoffice.org>2019-03-27 09:42:01 +0100
commitca2a6bf2c3c59d106f1c6ad432eab21f696c23fc (patch)
tree3616969f889f8450502e4778d292417c355d85a2 /help3xsl/help.js
parent9b776454d95f5c6bf13c0ca5508c0b2225aa4c1c (diff)
tdf#124245 Polyfills and fixes for IE11
The polyfills can be removed after we drop IE11 support. Other IE11 fixes: Change from document.URL to window.location.pathname because otherwise we get local Windows paths with backward slashes. Use clear: left; for google-donation element so it doesn't float on top of other elements. Don't use defer to load fuzzysort.js and prism.js. Change-Id: I6c0143eab555c8b1fbdbde8e749a24baed2f69c8 Reviewed-on: https://gerrit.libreoffice.org/69549 Tested-by: Jenkins Reviewed-by: himajin100000 <himajin100000@gmail.com> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'help3xsl/help.js')
-rw-r--r--help3xsl/help.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/help3xsl/help.js b/help3xsl/help.js
index e806eeed4f..7789c17aea 100644
--- a/help3xsl/help.js
+++ b/help3xsl/help.js
@@ -8,7 +8,7 @@
*/
// Pagination and fuzzy search
-var url = document.URL;
+var url = window.location.pathname;
var moduleRegex = new RegExp('text\\/(\\w+)\\/');
var regexArray = moduleRegex.exec(url);
var currentModule = null;