feat: allow bypassing indexedb cache
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<title>Web Components Test</title>
|
||||
<link rel="stylesheet" href="/packs/style.css" />
|
||||
<script>
|
||||
window.__APP_MODE__ = 'ui';
|
||||
window.__WOOT_ISOLATED_SHELL__ = true;
|
||||
window.__WOOT_ACCOUNT_ID__ = 1;
|
||||
window.__WOOT_API_HOST__ = 'http://localhost:3000';
|
||||
window.__WOOT_ACCESS_TOKEN__ = 'token';
|
||||
|
||||
Reference in New Issue
Block a user