Skip to content

Commit

Permalink
[W-15061326] remove deprecated functions (#822)
Browse files Browse the repository at this point in the history
* [W-15061326] remove deprecated functions

* remove console logs and extend timeouts

* remove console log
  • Loading branch information
cheungaryk authored Nov 5, 2024
1 parent 97d21a6 commit af8bddc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/js/25-trending-topics-fallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
console.error(error)
}
}
}, 3000)
}, 5000)
})()
2 changes: 0 additions & 2 deletions src/js/vendor/coveo.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ use ${osMap[this.clientOS].secondaryKeyLabelLong} + ${shortcutKeyMap.keyLabel}`
this.searchboxTextarea.placeholder = 'Search Docs'
// .getAttribute('aria-label') is used here instead of .ariaLabel
// because for some reason, it returned an error in firefox
console.log(this.searchboxTextarea)
console.log(this.searchboxTextarea.getAttribute('aria-label'))
this.searchboxTextarea.ariaLabel = this.searchboxTextarea
.getAttribute('aria-label')
.replace('Search field', 'Search Doc field')
Expand Down
4 changes: 1 addition & 3 deletions src/partials/head/head-scripts/coveo-search-scripts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@
await customElements.whenDefined('atomic-recs-interface');
const recommendInterface = document.querySelector('#recs');
if (recommendInterface) {
const organizationEndpoints = await recommendInterface.getOrganizationEndpoints(organizationId);
await recommendInterface.initialize({
accessToken,
organizationId,
organizationEndpoints,
});
recommendInterface.getRecommendations();
}
Expand All @@ -43,4 +41,4 @@
const crToken = "{{#if (eq (site-profile) 'jp')}}{{env.COVEO_CR_API_KEY_JP}}{{else}}{{env.COVEO_CR_API_KEY}}{{/if}}"
initContentRecommendations("{{ env.COVEO_ORG_ID }}", crToken);
})();
</script>
</script>

0 comments on commit af8bddc

Please sign in to comment.