Skip to content

Commit

Permalink
chore: remove useless Promise.resolve() (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add authored Feb 8, 2023
1 parent 9957047 commit 5cdcf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wujie-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export async function startApp(startOptions: startOptions): Promise<Function | v
sandbox.lifecycles = lifecycles;
const iframeWindow = sandbox.iframe.contentWindow;
if (sandbox.preload) {
await Promise.resolve(sandbox.preload);
await sandbox.preload;
}
if (alive) {
// 保活
Expand Down

0 comments on commit 5cdcf8d

Please sign in to comment.