mirror of
https://github.com/nasa/openmct.git
synced 2025-01-21 03:55:31 +00:00
feat: Remove unnecessary couchDBChangesFeed.js entry and update SharedWorker initialization in CouchObjectProvider.
This commit is contained in:
parent
63cdd34462
commit
d7472ebc4c
@ -45,7 +45,6 @@ const config = {
|
|||||||
},
|
},
|
||||||
entry: {
|
entry: {
|
||||||
openmct: './openmct.js',
|
openmct: './openmct.js',
|
||||||
couchDBChangesFeed: './src/plugins/persistence/couch/CouchChangesFeed.js',
|
|
||||||
espressoTheme: './src/plugins/themes/espresso-theme.scss',
|
espressoTheme: './src/plugins/themes/espresso-theme.scss',
|
||||||
snowTheme: './src/plugins/themes/snow-theme.scss',
|
snowTheme: './src/plugins/themes/snow-theme.scss',
|
||||||
darkmatterTheme: './src/plugins/themes/darkmatter-theme.scss'
|
darkmatterTheme: './src/plugins/themes/darkmatter-theme.scss'
|
||||||
|
@ -57,11 +57,11 @@ class CouchObjectProvider {
|
|||||||
let provider = this;
|
let provider = this;
|
||||||
let sharedWorker;
|
let sharedWorker;
|
||||||
|
|
||||||
// eslint-disable-next-line no-undef
|
|
||||||
const sharedWorkerURL = `${this.openmct.getAssetPath()}${__OPENMCT_ROOT_RELATIVE__}couchDBChangesFeed.js`;
|
|
||||||
|
|
||||||
sharedWorker = new SharedWorker(
|
sharedWorker = new SharedWorker(
|
||||||
sharedWorkerURL,
|
/* webpackChunkName: "couchDBChangesFeed" */ new URL(
|
||||||
|
'./CouchChangesFeed.js',
|
||||||
|
import.meta.url
|
||||||
|
),
|
||||||
`CouchDB SSE Shared Worker for ${this.namespace}`
|
`CouchDB SSE Shared Worker for ${this.namespace}`
|
||||||
);
|
);
|
||||||
sharedWorker.port.onmessage = provider.onSharedWorkerMessage.bind(this);
|
sharedWorker.port.onmessage = provider.onSharedWorkerMessage.bind(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user