Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Aug 14, 2023
1 parent f5f9b38 commit b1002f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web-worker/src/shared-worker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MessageChannel, type MessagePort as NodeMessagePort } from 'node:worker_threads'
import type { InlineWorkerContext, Procedure } from './types'
import { InlineWorkerRunner } from './runner'
import { debug, getRunnerOptions } from './utils'
import { debug, getFileIdFromUrl, getRunnerOptions } from './utils'

interface SharedInlineWorkerContext extends Omit<InlineWorkerContext, 'onmessage' | 'postMessage' | 'self' | 'global'> {
onconnect: Procedure | null
Expand Down Expand Up @@ -101,7 +101,7 @@ export function createSharedWorkerConstructor(): typeof SharedWorker {

const runner = new InlineWorkerRunner(runnerOptions, context)

const id = (url instanceof URL ? url.toString() : url).replace(/^file:\/+/, '/')
const id = getFileIdFromUrl(url)

this._vw_name = id

Expand Down

0 comments on commit b1002f1

Please sign in to comment.