mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17: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');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.39.21",
|
||||
"version": "4.39.22",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
Reference in new issue
Block a user