Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1m0n committed Apr 11, 2024
1 parent ec18044 commit 3ba1b6a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ const openWindow = (url: string) => {

const { protocol } = parsedUrl;

// We could handle all possible link cases here, not only http/https
if (protocol !== PRODUCTION_APP_PROTOCOL) {
try {
// Open the URL in the default browser
try {
await shell.openExternal(url);
} catch (error: unknown) {
log.error(`Failed to open url: ${error}`);
Expand Down

0 comments on commit 3ba1b6a

Please sign in to comment.