Skip to content

Commit

Permalink
chore: drop E22
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Nov 27, 2023
1 parent d9c8a0b commit 3051a44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/routes/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ router.get(
);
const lastStable = releases.find((r) => semver.parse(r.version).prerelease.length === 0);
const stableMajor = semver.parse(lastStable.version).major;
// TODO: We're supporting Electron 22 until Oct. 10, 2023.
// Remove this hardcoded value at that time.
const latestSupported = [stableMajor, stableMajor - 1, stableMajor - 2, 22].map((major) =>
const latestSupported = [stableMajor, stableMajor - 1, stableMajor - 2].map((major) =>
releases.find((r) => semver.parse(r.version).major === major),
);
if (semver.parse(lastPreRelease.version).major <= stableMajor) {
Expand Down

0 comments on commit 3051a44

Please sign in to comment.