Skip to content

Commit 7a46f23

Browse files
authored
Merge pull request #7470 from panreyes/docsearch_not_available_fix
Fix issue with Algolia's docsearch object being missing in pages with tabs
2 parents 8cf2fba + c2f08b3 commit 7a46f23

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_static/js/algolia.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
var doc_version = document.querySelector('meta[name="doc_version"]').getAttribute('content');
55

6+
// If the current page uses tabs, we will need this small patch
7+
if (typeof(docsearch) == 'undefined') {
8+
docsearch = exports['docsearch'];
9+
}
10+
611
// Initialize the Algolia search widget
712
docsearch({
813
apiKey: 'c39cb614363a2a156811478bc2d0573b',

0 commit comments

Comments
 (0)