mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 08:33:01 -04:00
Some General Fixes
This commit is contained in:
parent
872f67c19e
commit
537afc71be
6 changed files with 54 additions and 19 deletions
|
@ -75,19 +75,6 @@ export default definePlugin({
|
|||
match: /(?<=function\((\i),\i\)\{)(?=let \i=Object.values\(\i.\i\).*?(\i\.\i)\.open\()/,
|
||||
replace: "$2.open($1);return;"
|
||||
}
|
||||
},
|
||||
{
|
||||
find: "Unknown resolution:",
|
||||
replacement: [
|
||||
{
|
||||
match: /throw Error\("Unknown resolution: ".concat\((\i)\)\)/,
|
||||
replace: "return $1;"
|
||||
},
|
||||
{
|
||||
match: /throw Error\("Unknown frame rate: ".concat\((\i)\)\)/,
|
||||
replace: "return $1;"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ export const settings = definePluginSettings({
|
|||
});
|
||||
|
||||
export default definePlugin({
|
||||
name: "UserDevCompanion",
|
||||
name: "DevCompanion",
|
||||
description: "Dev Companion Plugin",
|
||||
authors: [Devs.Ven, Devs.sadan, Devs.Samwich],
|
||||
reporterTestable: ReporterTestable.None,
|
||||
|
@ -63,7 +63,6 @@ export default definePlugin({
|
|||
start() {
|
||||
// if we're running the reporter, we need to initws in the reporter file to avoid a race condition
|
||||
if (!IS_DEV) throw new Error("This plugin requires dev mode to run, please build with pnpm build --dev");
|
||||
if (Vencord.Settings.plugins.DevCompanion?.enabled) throw new Error("Disable DevCompanion");
|
||||
initWs();
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue