fix formatting

This commit is contained in:
sadan 2024-08-27 17:02:04 -04:00
parent 5cdfb576f9
commit 5851355248
No known key found for this signature in database
2 changed files with 4 additions and 3 deletions

View file

@ -36,15 +36,15 @@ export const settings = definePluginSettings({
},
usePatchedModule: {
description: "On extract requests, reply with the current patched module (if it is patched) instead of the original",
default: true,
type: OptionType.BOOLEAN,
default: true,
}
});
export default definePlugin({
name: "DevCompanion",
description: "Dev Companion Plugin",
authors: [Devs.Ven, Devs.sadan],
authors: [Devs.Ven, Devs.sadan, Devs.Samwich],
// we need to be reporter testable to run and give the reuslts
reporterTestable: IS_COMPANION_TEST ? undefined : ReporterTestable.None,
settings,

View file

@ -69,7 +69,8 @@ export function extractModule(id: number, patched = settings.store.usePatchedMod
if (!module)
throw new Error("No module found for module id:" + id);
return patched ? module.$$vencordPatchedSource ?? module.original.toString() : module.original.toString();
} export function parseNode(node: Node) {
}
export function parseNode(node: Node) {
switch (node.type) {
case "string":
return node.value;