mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01: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
+1
-4
@@ -53,10 +53,7 @@ fs.writeFileSync(path.resolve(process.cwd(), 'packages', 'ui-default', 'tsconfig
|
|||||||
jsx: 'react',
|
jsx: 'react',
|
||||||
module: 'es2020',
|
module: 'es2020',
|
||||||
allowSyntheticDefaultImports: true,
|
allowSyntheticDefaultImports: true,
|
||||||
target: 'ES2020',
|
target: 'es2020',
|
||||||
lib: [
|
|
||||||
'ES2020',
|
|
||||||
],
|
|
||||||
baseUrl: '.',
|
baseUrl: '.',
|
||||||
moduleResolution: 'node',
|
moduleResolution: 'node',
|
||||||
paths: {
|
paths: {
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
"@types/katex": "^0.11.1",
|
"@types/katex": "^0.11.1",
|
||||||
"@types/qrcode": "^1.4.2",
|
"@types/qrcode": "^1.4.2",
|
||||||
"@types/redux-logger": "^3.0.9",
|
"@types/redux-logger": "^3.0.9",
|
||||||
"@types/sharedworker": "^0.0.64",
|
|
||||||
"@types/sockjs-client": "^1.5.1",
|
"@types/sockjs-client": "^1.5.1",
|
||||||
"@undefined-moe/monaco-yaml": "^2.5.1",
|
"@undefined-moe/monaco-yaml": "^2.5.1",
|
||||||
"ansi_up": "^5.1.0",
|
"ansi_up": "^5.1.0",
|
||||||
|
|||||||
@@ -45,8 +45,8 @@ function initSharedConn(path: string, port: MessagePort, cookie: any) {
|
|||||||
sharedConnections[path][1].push(port);
|
sharedConnections[path][1].push(port);
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line no-undef
|
// @ts-ignore
|
||||||
onconnect = function (e) {
|
onconnect = function (e) { // eslint-disable-line no-undef
|
||||||
const port = e.ports[0];
|
const port = e.ports[0];
|
||||||
|
|
||||||
port.addEventListener('message', (msg: { data: RequestPayload }) => {
|
port.addEventListener('message', (msg: { data: RequestPayload }) => {
|
||||||
|
|||||||
Reference in new issue
Block a user