Skip to content

Commit 20a6c25

Browse files
committed
fix(reactant-share): fix transport issue
1 parent 56072bb commit 20a6c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/reactant-share/src/modules/coworker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class Coworker extends PluginModule {
183183
return (
184184
this.coworkerOptions!.transports?.coworker ??
185185
createTransport(
186-
isWebWorker ? 'WorkerInternal' : 'SharedWorkerInternal',
186+
isWebWorker ? 'WebWorkerInternal' : 'SharedWorkerInternal',
187187
{
188188
prefix: this.prefix,
189189
verbose: this.coworkerOptions?.enableTransportDebugger,
@@ -199,7 +199,7 @@ export class Coworker extends PluginModule {
199199
return;
200200
}
201201
if (this.coworkerOptions.worker instanceof Worker) {
202-
return createTransport('WorkerMain', {
202+
return createTransport('WebWorkerClient', {
203203
worker: this.coworkerOptions.worker,
204204
prefix: this.prefix,
205205
verbose: this.coworkerOptions.enableTransportDebugger,

0 commit comments

Comments
 (0)