Skip to content

Commit

Permalink
Merge branch 'main' into feat/configure-search-for-query-ranking
Browse files Browse the repository at this point in the history
# Conflicts:
#	public/snippet-script.js
  • Loading branch information
alvarodE committed Jul 17, 2024
2 parents 0efc020 + 5e13903 commit 31b9596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/snippet-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,10 @@ window.addEventListener('load', () => {
search: {
baseUrl: 'https://api.staging.empathy.co/search/v1'
},
lang,
instance,
lang,
audience: 'enterprise',
playboardUrl: `https://playboard-platform.staging.empathy.co/${instance}`,
appContainerSelector: '.x-root-container',
searchLayerSelector: '.x'
});
Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@
}
@XOn(['ParamsLoadedFromUrl'])
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async requestAuthWysiwyg(payload: UrlParams): Promise<void> {
try {
if (window.wysiwyg) {
await window.wysiwyg?.requestAuth();
window.InterfaceX?.search();
window.wysiwyg?.setContext({ query: payload.query });
}
} catch (_) {
// No error handling
Expand Down

0 comments on commit 31b9596

Please sign in to comment.