mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
ui: remove sharedworker types to prevent conflict
This commit is contained in:
1 parent
64a2c6ff82
commit
08f66e85bc
3 files changed
+3
-7
No files matched your search
@@ -45,8 +45,8 @@ function initSharedConn(path: string, port: MessagePort, cookie: any) {
|
||||
sharedConnections[path][1].push(port);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-undef
|
||||
onconnect = function (e) {
|
||||
// @ts-ignore
|
||||
onconnect = function (e) { // eslint-disable-line no-undef
|
||||
const port = e.ports[0];
|
||||
|
||||
port.addEventListener('message', (msg: { data: RequestPayload }) => {
|
||||
|
||||
Reference in new issue
Block a user