Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
🐛 Fix bug in update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaRogue committed Sep 27, 2023
1 parent f56dae2 commit f788b85
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function compareSemver(a: string, b: string): number {

let currentA, currentB: number;
for (let i = 0; i < splitA.length; i++) {
currentA = Number(splitA[0]);
currentB = Number(splitB[0]);
currentA = Number(splitA[i]);
currentB = Number(splitB[i]);
if (currentA > currentB) {
return 1;
} else if (currentA < currentB) {
Expand All @@ -22,7 +22,6 @@ function compareSemver(a: string, b: string): number {
return 0
}


document.querySelector("#add-game").addEventListener("click", () => {
const gameUrlField = document.querySelector("#game-url") as HTMLInputElement;
const gameNameField = document.querySelector("#game-name") as HTMLInputElement;
Expand Down

0 comments on commit f788b85

Please sign in to comment.