mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +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
+1
-4
@@ -53,10 +53,7 @@ fs.writeFileSync(path.resolve(process.cwd(), 'packages', 'ui-default', 'tsconfig
|
||||
jsx: 'react',
|
||||
module: 'es2020',
|
||||
allowSyntheticDefaultImports: true,
|
||||
target: 'ES2020',
|
||||
lib: [
|
||||
'ES2020',
|
||||
],
|
||||
target: 'es2020',
|
||||
baseUrl: '.',
|
||||
moduleResolution: 'node',
|
||||
paths: {
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
"@types/katex": "^0.11.1",
|
||||
"@types/qrcode": "^1.4.2",
|
||||
"@types/redux-logger": "^3.0.9",
|
||||
"@types/sharedworker": "^0.0.64",
|
||||
"@types/sockjs-client": "^1.5.1",
|
||||
"@undefined-moe/monaco-yaml": "^2.5.1",
|
||||
"ansi_up": "^5.1.0",
|
||||
|
||||
@@ -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