mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix build errors
This commit is contained in:
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', () => {
|
||||
|
||||
Reference in new issue
Block a user