mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-11 23:53:03 -04:00
Fix crashes & settings on canary
This commit is contained in:
parent
c1593e1806
commit
098124175f
2 changed files with 12 additions and 1 deletions
|
@ -42,7 +42,18 @@ const subscribedFluxEventsPlugins = new Set<string>();
|
|||
const pluginsValues = Object.values(Plugins);
|
||||
const settings = Settings.plugins;
|
||||
|
||||
const forceDisabled = new Set([
|
||||
"MessageLogger",
|
||||
"ShowHiddenChannels",
|
||||
"MoreUserTags",
|
||||
"Decor",
|
||||
"IgnoreActivities",
|
||||
"NoBlockedMessages",
|
||||
"BetterFolders",
|
||||
"NoPendingCount"
|
||||
]);
|
||||
export function isPluginEnabled(p: string) {
|
||||
if (forceDisabled.has(p)) return false;
|
||||
return (
|
||||
Plugins[p]?.required ||
|
||||
Plugins[p]?.isDependency ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue