diff options
author | Mario <mario@mariovavti.com> | 2020-11-27 08:04:00 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-11-27 08:04:00 +0000 |
commit | f4bb7bcbff3770387c2fecfa91ce4a60b916a474 (patch) | |
tree | ea007e664d435f1f3d63c87bfe1600484d2bd46c /vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js | |
parent | 07e5b8295ea9d342f66d8119d88bd58124b548e6 (diff) | |
download | volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.gz volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.bz2 volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.zip |
update composer libs
Diffstat (limited to 'vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js')
-rw-r--r-- | vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js b/vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js index e372d1553..bb97c5cf8 100644 --- a/vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js +++ b/vendor/twbs/bootstrap/site/docs/4.5/assets/js/src/search.js @@ -37,12 +37,12 @@ var currentUrl = getOrigin() var liveUrl = 'https://getbootstrap.com/' - hit.url = currentUrl.lastIndexOf(liveUrl, 0) === 0 + hit.url = currentUrl.lastIndexOf(liveUrl, 0) === 0 ? // On production, return the result as is - ? hit.url + hit.url : // On development or Netlify, replace `hit.url` with a trailing slash, // so that the result link is relative to the server root - : hit.url.replace(liveUrl, '/') + hit.url.replace(liveUrl, '/') // Prevent jumping to first header if (hit.anchor === 'content') { @@ -56,4 +56,4 @@ // Set debug to `true` if you want to inspect the dropdown debug: false }) -}()) +})() |