Skip to content

Commit 47dba20

Browse files
committed
fixed
1 parent 34796d3 commit 47dba20

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ declare global {
33
__uv: any;
44
$scramjet: any;
55
}
6+
function $scramjetLoadController(): { ScramjetController: any };
67
}
78
export {};

src/utils/proxy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ class SW {
125125
checkScripts().then(async () => {
126126
this.#baremuxConn = new BareMuxConnection("/erab/worker.js");
127127
await this.setTransport();
128+
const { ScramjetController } = $scramjetLoadController();
128129
this.#scramjetController = new ScramjetController({
129130
prefix: "/~/scramjet/",
130131
files: {

0 commit comments

Comments
 (0)