mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 18:06:22 +00:00
fix formatting
This commit is contained in:
parent
5cdfb576f9
commit
5851355248
2 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue