Important hotfix before the big update

This commit is contained in:
2024-02-25 03:06:28 -05:00
parent 86b292a14a
commit bfa084669b
4 changed files with 5 additions and 9 deletions
+1 -1
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": {
-1
View File
@@ -3,7 +3,6 @@ import {ipcRenderer as IPC, shell} from "electron";
export const ipcRenderer = {
send: IPC.send.bind(IPC),
sendToHost: IPC.sendToHost.bind(IPC),
sendTo: IPC.sendTo.bind(IPC),
sendSync: IPC.sendSync.bind(IPC),
invoke: IPC.invoke.bind(IPC),
on: IPC.on.bind(IPC),
+3 -6
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."
]
}
]
+1 -1
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;