Skip to content

Commit c2f08b3

Browse files
authored
Fix issue with Algolia's docsearch object being missing in pages with tabs
Fixes #7469
1 parent 6fdf4c8 commit c2f08b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

_static/js/algolia.js

+5
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)