diff --git a/scripts/main.ts b/scripts/main.ts index eef2e45..b505693 100644 --- a/scripts/main.ts +++ b/scripts/main.ts @@ -240,6 +240,11 @@ app.whenReady().then(async () => { closeServeFn = mod.closeServe; const port = await mod.default(true); process.env.PORT = port; + await new Promise((resolve, reject) => { + setTimeout(() => { + resolve(); + }, 2000); + }); // 注册协议处理器 protocol.handle("toonflow", (request) => { const url = new URL(request.url);