ConsoleShortcuts: Readd Equibop Check

This commit is contained in:
thororen1234 2025-09-07 20:50:20 -04:00
parent 34d530e055
commit 6e58f1f832
No known key found for this signature in database

View file

@ -181,7 +181,7 @@ function makeShortcuts() {
});
},
switchBranch: (branch: string) => {
if (!IS_VESKTOP) throw new Error("This function only works on vesktop and equibop.");
if (!IS_VESKTOP && !IS_EQUIBOP) throw new Error("This function only works on vesktop and equibop.");
const target = IS_VESKTOP ? Vesktop : Equibop;
if (target.Settings.store.discordBranch === branch) throw new Error(`Already on ${branch}.`);
target.Settings.store.discordBranch = branch;