diff --git a/app/javascript/dashboard/api/inboxes.js b/app/javascript/dashboard/api/inboxes.js index 8c09791c8..ae53f78c4 100644 --- a/app/javascript/dashboard/api/inboxes.js +++ b/app/javascript/dashboard/api/inboxes.js @@ -1,7 +1,14 @@ /* global axios */ import CacheEnabledApiClient from './CacheEnabledApiClient'; +// import ApiClient from './ApiClient'; +import ApiClient from './ApiClient'; -class Inboxes extends CacheEnabledApiClient { +// eslint-disable-next-line no-underscore-dangle +const BaseClass = window.__WOOT_ISOLATED_SHELL__ + ? ApiClient + : CacheEnabledApiClient; + +class Inboxes extends BaseClass { constructor() { super('inboxes', { accountScoped: true }); } diff --git a/app/javascript/dashboard/helper/actionCable.js b/app/javascript/dashboard/helper/actionCable.js index 5c179e29e..2bdd335cb 100644 --- a/app/javascript/dashboard/helper/actionCable.js +++ b/app/javascript/dashboard/helper/actionCable.js @@ -99,7 +99,7 @@ class ActionCableConnector extends BaseActionCableConnector { conversation_id: conversationId, } = data; // eslint-disable-next-line no-underscore-dangle - if (window.__APP_MODE__ !== 'ui') { + if (!window.__WOOT_ISOLATED_SHELL__) { DashboardAudioNotificationHelper.onNewMessage(data); } this.app.$store.dispatch('addMessage', data); diff --git a/public/test-components.html b/public/test-components.html index 9ca9c1e9d..4ec5327b9 100644 --- a/public/test-components.html +++ b/public/test-components.html @@ -6,7 +6,7 @@