Merge branch 'hotfix-updater' into development

This commit is contained in:
Zerebos 2024-02-25 17:46:40 -05:00
commit 1561195daa
3 changed files with 5 additions and 8 deletions

View File

@ -1,6 +1,6 @@
{
"name": "betterdiscord",
"version": "1.9.7",
"version": "1.9.8",
"description": "Enhances Discord by adding functionality and themes.",
"main": "src/index.js",
"scripts": {

View File

@ -1,16 +1,13 @@
// fixed, improved, added, progress
export default {
description: "This is a small but very important update to fix some key issues!",
description: "There is a big update coming soon, but we needed these important fixes in place first!",
changes: [
{
title: "What's Fixed?",
type: "fixed",
items: [
"Spanish (LATAM) is now properly supported.",
"Future cases of unrecognized locales as well as locale fallback now works as intended and shouldn't cause loading issues.",
"Updated translations for Vietnamese locale.",
"Fixed an issue where certain actions (such as favoriting GIFs) caused unexpected lag.",
"Fixed some issues with general client lag."
"BetterDiscord is now be working on Canary and PTB once again!",
"Core version numbers will now be handled correctly in the updater; this is very important for future updates."
]
}
]

View File

@ -87,7 +87,7 @@ export class CoreUpdater {
const data = await resp.json();
this.apiData = data;
const remoteVersion = data.tag_name.startsWith("v") ? data.tag_name.slice(1) : data.tag_name;
this.hasUpdate = remoteVersion > Config.version;
this.hasUpdate = semverComparator(Config.version, remoteVersion) > 0;
this.remoteVersion = remoteVersion;
if (!this.hasUpdate || !showNotice) return;