Skip to content

Commit 94da769

Browse files
committed
[scramjet/controller] fix worker inject script
1 parent d8fb090 commit 94da769

File tree

1 file changed

+4
-1
lines changed
  • packages/scramjet/packages/controller/src

1 file changed

+4
-1
lines changed

packages/scramjet/packages/controller/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ class Frame {
323323
};
324324

325325
script(config.scramjetPath);
326-
script(this.prefix + config.virtualWasmPath);
326+
script(
327+
this.prefix.substring(0, this.prefix.length - 1) +
328+
config.virtualWasmPath
329+
);
327330
str += `
328331
(()=>{
329332
const { ScramjetClient, CookieJar, setWasm } = $scramjet;

0 commit comments

Comments
 (0)