Skip to content

Commit 271a613

Browse files
authored
fix replace needle in URL in sharedworker. (#106)
1 parent 12bb62d commit 271a613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function comlink({
5353
}
5454

5555
if (id.includes(urlPrefix_shared)) {
56-
const realID = normalizePath(id.replace(urlPrefix_normal, ""));
56+
const realID = normalizePath(id.replace(urlPrefix_shared, ""));
5757

5858
return `
5959
import {expose} from 'comlink'

0 commit comments

Comments
 (0)