ui: optional shared worker

This commit is contained in:
undefined committed 2022-09-02 13:04:49 +08:00
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 -1
View File
@@ -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",