mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: optional shared worker
This commit is contained in:
1 parent
316d9d5342
commit
5af9bd6b88
2 files changed
+7
-3
No files matched your search
@@ -73,8 +73,12 @@ const messagePage = new AutoloadPage('messagePage', (pagename) => {
|
||||
}).show();
|
||||
}
|
||||
if (window.SharedWorker) {
|
||||
initWorkerMode();
|
||||
return;
|
||||
try {
|
||||
initWorkerMode();
|
||||
return;
|
||||
} catch (e) {
|
||||
console.error('SharedWorker init fail: ', e.message);
|
||||
}
|
||||
}
|
||||
if (!window.BroadcastChannel) {
|
||||
console.error('BoardcastChannel not supported');
|
||||
|
||||
Reference in new issue
Block a user