Some General Fixes

This commit is contained in:
thororen1234 2025-01-09 07:19:41 -05:00
parent 872f67c19e
commit 537afc71be
6 changed files with 54 additions and 19 deletions

View file

@ -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;"
}
]
}
],

View file

@ -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();
},