ui: fix build errors

This commit is contained in:
undefined committed 2022-09-30 23:28:40 +08:00
1 parent 1608b4b9aa
commit 7f96f602ce
11 files changed
+22 -16

No files matched your search

@@ -44,6 +44,7 @@ const endpoint = url.toString().replace('http', 'ws');
const initWorkerMode = () => {
console.log('Messages: using SharedWorker');
// @ts-ignore
const worker = new SharedWorker(new URL('./worker?inline', import.meta.url), { name: 'HydroMessagesWorker' });
worker.port.start();
window.addEventListener('beforeunload', () => {