From 7d3d18d30c678fe0206f7c4305da03e67067c3ae Mon Sep 17 00:00:00 2001 From: Andy Brown Date: Wed, 7 Apr 2021 14:09:58 -0700 Subject: [PATCH] immediately register open-url handler --- packages/app/main/src/main.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/app/main/src/main.ts b/packages/app/main/src/main.ts index 496163f5b..9a2fdb975 100644 --- a/packages/app/main/src/main.ts +++ b/packages/app/main/src/main.ts @@ -184,7 +184,7 @@ class EmulatorApplication { app.on('activate', this.onAppActivate); app.on('ready', this.onAppReady); app.on('open-file', this.onAppOpenFile); - app.on('will-finish-launching', this.onAppWillFinishLaunching); + app.on('open-url', this.onAppOpenUrl); app.on('will-quit', this.onAppWillQuit); } @@ -342,10 +342,6 @@ class EmulatorApplication { this.onAppReady(); }; - private onAppWillFinishLaunching = () => { - app.on('open-url', this.onAppOpenUrl); - }; - private onAppWillQuit = () => { WebSocketServer.cleanup(); };