Skip to content

Commit

Permalink
Merge pull request #492 from empathyco/fix/fix-backroom-back-from-log…
Browse files Browse the repository at this point in the history
…in-context-issue

fix: Fix backroom back from login context issue
  • Loading branch information
alvarodE authored Jul 17, 2024
2 parents 299a352 + 063e9d6 commit 5e13903
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 @@ -119,9 +119,10 @@ window.addEventListener('load', () => {
conversational: {
baseUrl: 'https://gplay-rag.internal.test.empathy.co'
},
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 5e13903

Please sign in to comment.