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
+5
-1
No files matched your search
@@ -73,8 +73,12 @@ const messagePage = new AutoloadPage('messagePage', (pagename) => {
|
|||||||
}).show();
|
}).show();
|
||||||
}
|
}
|
||||||
if (window.SharedWorker) {
|
if (window.SharedWorker) {
|
||||||
|
try {
|
||||||
initWorkerMode();
|
initWorkerMode();
|
||||||
return;
|
return;
|
||||||
|
} catch (e) {
|
||||||
|
console.error('SharedWorker init fail: ', e.message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!window.BroadcastChannel) {
|
if (!window.BroadcastChannel) {
|
||||||
console.error('BoardcastChannel not supported');
|
console.error('BoardcastChannel not supported');
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.39.21",
|
"version": "4.39.22",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user