Skip to content

Commit

Permalink
Merge pull request #587 from trilitech/fix-error-on-beacon-request-wi…
Browse files Browse the repository at this point in the history
…th-closed-app

Fix deeplink with a closed app
  • Loading branch information
serjonya-trili authored Nov 27, 2023
2 parents 1fdc820 + 2d36d93 commit 5a0f885
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,14 @@ app.on("second-instance", (event, argv, cwd) => {
}
});

app.on("open-url", (event, url) => {
console.log("open-url", url);
app.on("open-url", (_event, url) => {
if (mainWindow) {
mainWindow.webContents.send("deeplinkURL", url);
} else {
deeplinkURL = url;
createWindow();
app.whenReady().then(() => {
createWindow();
});
}
});

Expand Down

0 comments on commit 5a0f885

Please sign in to comment.