diff --git a/public/snippet-script.js b/public/snippet-script.js index c0d23a20..469488f0 100644 --- a/public/snippet-script.js +++ b/public/snippet-script.js @@ -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' }); diff --git a/src/App.vue b/src/App.vue index 716f9236..903962c9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -72,12 +72,12 @@ } @XOn(['ParamsLoadedFromUrl']) - // eslint-disable-next-line @typescript-eslint/no-unused-vars async requestAuthWysiwyg(payload: UrlParams): Promise { try { if (window.wysiwyg) { await window.wysiwyg?.requestAuth(); window.InterfaceX?.search(); + window.wysiwyg?.setContext({ query: payload.query }); } } catch (_) { // No error handling