Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Commit 8023cbe

Browse files
authored
immediately register open-url handler (#2252)
1 parent aa7ac0e commit 8023cbe

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/app/main/src/main.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class EmulatorApplication {
184184
app.on('activate', this.onAppActivate);
185185
app.on('ready', this.onAppReady);
186186
app.on('open-file', this.onAppOpenFile);
187-
app.on('will-finish-launching', this.onAppWillFinishLaunching);
187+
app.on('open-url', this.onAppOpenUrl);
188188
app.on('will-quit', this.onAppWillQuit);
189189
}
190190

@@ -342,10 +342,6 @@ class EmulatorApplication {
342342
this.onAppReady();
343343
};
344344

345-
private onAppWillFinishLaunching = () => {
346-
app.on('open-url', this.onAppOpenUrl);
347-
};
348-
349345
private onAppWillQuit = () => {
350346
WebSocketServer.cleanup();
351347
};

0 commit comments

Comments
 (0)