Skip to content

Commit c278610

Browse files
authored
Check whether docsearch is defined before calling it (#358)
Prevents the docs from remaining hidden because of an error in theme.js as the result of e.g. the browser blocking the load of the docsearch script
1 parent 028c7a6 commit c278610

File tree

1 file changed

+1
-0
lines changed
  • site/themes/arangodb-docs-theme/layouts/partials

1 file changed

+1
-0
lines changed

site/themes/arangodb-docs-theme/layouts/partials/search.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
<script type="text/javascript">
66
window.setupDocSearch = function (facetVersion) {
7+
if (!window.docsearch) return;
78
docsearch({
89
appId: "OK3ZBQ5982",
910
apiKey: "500c85ccecb335d507fe4449aed12e1d",

0 commit comments

Comments
 (0)