Skip to content

Commit 2ff3cd8

Browse files
committed
cr
1 parent d321c2f commit 2ff3cd8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/handlers/app/preload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function trackEvent(event: UsageEvent) {
2727
let pendingDeepLink: string | null = null
2828
let 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 {

src/handlers/app/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export 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
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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', () =>

src/main/deepLinks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)