File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -452,9 +452,6 @@ ol li:last-child {
452
452
.header__search {
453
453
display : block;
454
454
width : 14rem ;
455
- /* This is a horrible hack to stop coveo overflowing 3500px for no reason. :sad */
456
- transform : translateY (0 );
457
- overflow : hidden;
458
455
}
459
456
460
457
.header__product-selector {
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ async function getsearchObj() {
23
23
async function atomicCoveo ( ) {
24
24
/* Fetch the credentials */
25
25
await customElements . whenDefined ( 'atomic-search-interface' ) ;
26
- const token = localStorage . getItem ( 'coveo_jwt_v1' ) ;
27
- const org_id = localStorage . getItem ( 'coveo_org_id_v1' ) ;
26
+ const token =
27
+ 'eyJhbGciOiJIUzI1NiJ9.eyJzZWFyY2hIdWIiOiJIVUJfRVNfTmdpbnhfRG9jc19BbmRfT3JnIiwidjgiOnRydWUsInRva2VuSWQiOiJ1Ym1mejJpMzRvbmZ3c2FsaHBseHFvMmpjdSIsIm9yZ2FuaXphdGlvbiI6ImY1bmV0d29ya3Nwcm9kdWN0aW9uNXZraG4wMGgiLCJ1c2VySWRzIjpbeyJ0eXBlIjoiVXNlciIsIm5hbWUiOiJhbm9ueW1vdXMiLCJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIn1dLCJyb2xlcyI6WyJxdWVyeUV4ZWN1dG9yIl0sImlzcyI6IlNlYXJjaEFwaSIsImV4cCI6MTc1MzIyOTM0MCwiaWF0IjoxNzUzMTQyOTQwfQ.lsKbajGJBke_M3CzzFO8Vk6m61LpYE2gaBaFq1noqyI' ;
28
+ const org_id = 'f5networksproduction5vkhn00h' ;
28
29
let searchObj = { token, org_id } ;
29
30
30
31
if ( token === null || org_id === null || isJwtExpired ( token ) ) {
@@ -89,6 +90,16 @@ async function atomicCoveo() {
89
90
90
91
await searchBarSidebar . executeFirstSearch ( ) ;
91
92
}
93
+
94
+ /* Hide atomic-relevance-inspector */
95
+ const shadowElements = searchBarHeader . shadowRoot . childNodes ;
96
+ for ( let i = 0 ; i < shadowElements . length ; i ++ ) {
97
+ const val = shadowElements [ i ] ;
98
+ if ( val . localName === 'atomic-relevance-inspector' ) {
99
+ val . style . display = 'none' ;
100
+ break ;
101
+ }
102
+ }
92
103
}
93
104
94
105
document . addEventListener ( 'DOMContentLoaded' , async ( ) => {
You can’t perform that action at this time.
0 commit comments