File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export function trackEvent(event: UsageEvent) {
2727let pendingDeepLink : string | null = null
2828let deepLinkCallback : ( ( url : string ) => void ) | null = null
2929
30- ipcRenderer . on ( AppHandler . DeepLink , ( _ , url : string ) => {
30+ ipcRenderer . on ( AppHandler . Navigate , ( _ , url : string ) => {
3131 if ( deepLinkCallback ) {
3232 deepLinkCallback ( url )
3333 } else {
Original file line number Diff line number Diff line change 11export enum AppHandler {
22 Close = 'app:close' ,
33 ChangeRoute = 'app:change-route' ,
4- DeepLink = 'app:deep-link ' ,
4+ Navigate = 'app:navigate ' ,
55 TrackEvent = 'app:track-event' ,
66}
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ const createWindow = async () => {
115115 replayPendingDeepLink ( )
116116
117117 if ( process . env . NODE_ENV === 'development' ) {
118- mainWindow . webContents . openDevTools ( { mode : 'right' } )
118+ mainWindow . webContents . openDevTools ( )
119119 }
120120
121121 mainWindow . on ( 'closed' , ( ) =>
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ function handleDeepLink(url: string) {
8888
8989 const path = parsedUrl . searchParams . get ( 'path' )
9090
91- mainWindow . webContents . send ( AppHandler . DeepLink , path )
91+ mainWindow . webContents . send ( AppHandler . Navigate , path )
9292
9393 // Restore and focus the main window, needed for windows
9494 if ( mainWindow . isMinimized ( ) ) {
You can’t perform that action at this time.
0 commit comments