Skip to content

Commit

Permalink
Fix links opening in-app, add italian credits
Browse files Browse the repository at this point in the history
partial translation for italian, will be completed on full release
  • Loading branch information
JovannMC committed Jul 7, 2024
1 parent 30499d6 commit 94d2e6e
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 148 deletions.
7 changes: 6 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const lastErrorShownTime: Record<ErrorType, number> = {
[ErrorType.SendHeartbeatError]: 0,
[ErrorType.IMUProcessError]: 0,
[ErrorType.BluetoothCloseError]: 0,
[ErrorType.SerialUnexpectedError]: 0
[ErrorType.SerialUnexpectedError]: 0,
};

const errorCooldownPeriod = 500;
Expand Down Expand Up @@ -181,6 +181,11 @@ const createWindow = async () => {
mainWindow.webContents.send("localize", await loadTranslations());
mainWindow.webContents.send("version", app.getVersion());
});

mainWindow.webContents.setWindowOpenHandler(({ url }) => {
shell.openExternal(url);
return { action: "deny" };
});
};

app.on("ready", createWindow);
Expand Down
Loading

0 comments on commit 94d2e6e

Please sign in to comment.