Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrehault committed Sep 26, 2024
1 parent cfb7ccb commit 001c872
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions electron-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ const updateTrayAfterStopServer = () => {
contextMenu.items[1].visible = false;
};

const checkUpdates = async () => {
const data = await fetch('https://raw.githubusercontent.com/nuclia/sync-agent/main/package.json').then((response) =>
response.json(),
);
// const checkUpdates = async () => {
// const data = await fetch('https://raw.githubusercontent.com/nuclia/sync-agent/main/package.json').then((response) =>
// response.json(),
// );

if (semver.gt(data.version, VERSION)) {
await dialog.showMessageBox({
message: `A new version is available. Please download version ${data.version} and install it.`,
});
shell.openExternal(`https://github.com/nuclia/sync-agent/releases/tag/${data.version}`);
}
};
// if (semver.gt(data.version, VERSION)) {
// await dialog.showMessageBox({
// message: `A new version is available. Please download version ${data.version} and install it.`,
// });
// shell.openExternal(`https://github.com/nuclia/sync-agent/releases/tag/${data.version}`);
// }
// };

const createWindow = async () => {
// await checkUpdates();
Expand Down

0 comments on commit 001c872

Please sign in to comment.