ui: remove sharedworker types to prevent conflict

This commit is contained in:
undefined committed 2022-02-03 22:39:38 +08:00
1 parent 64a2c6ff82
commit 08f66e85bc
3 files changed
+3 -7

No files matched your search

+2 -2
View File
@@ -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 }) => {