File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
docs/sphinx_setup/_static/js Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -407,29 +407,27 @@ function addViewTypeListeners() {
407
407
document . addEventListener ( 'DOMContentLoaded' , function ( ) {
408
408
( async ( ) => {
409
409
await customElements . whenDefined ( "atomic-search-interface" ) ;
410
-
410
+
411
411
const initializeSearchInterface = async ( element , version = null ) => {
412
412
if ( ! element ) return ;
413
-
413
+
414
414
if ( version ) {
415
415
element . innerHTML = element . innerHTML . replace ( 'search.html' , `/${ version } /search.html#f-ovversion=${ version } ` ) ;
416
416
}
417
-
418
417
await element . initialize ( {
418
+ analytics : { analyticsMode : 'legacy' } ,
419
419
accessToken : "xx2b580d60-addf-451d-94fd-06effafb7686" ,
420
420
organizationId : "intelcorporationproductione78n25s6"
421
421
} ) ;
422
-
423
- element . executeFirstSearch ( ) ;
424
422
} ;
425
-
423
+
426
424
const searchInterfaceSa = document . querySelector ( "#sa-search" ) ;
427
425
const searchInterface = document . querySelector ( "#search" ) ;
428
426
const currentVersion = getCurrentVersion ( ) ;
429
-
427
+
430
428
await initializeSearchInterface ( searchInterfaceSa , currentVersion ) ;
431
429
await initializeSearchInterface ( searchInterface ) ;
432
-
430
+ searchInterface . executeFirstSearch ( ) ;
433
431
addViewTypeListeners ( ) ;
434
432
} ) ( ) ;
435
433
} )
You can’t perform that action at this time.
0 commit comments