From cddb040adcebc59788688fa778a9d60778cf06d0 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Wed, 10 Apr 2024 16:16:42 -0300 Subject: [PATCH] fix: transform patches `find` to array The latest dev build of Vencord expects it to be an array --- src/renderer/patches/shared.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/patches/shared.ts b/src/renderer/patches/shared.ts index 3cd370a..ca5eeab 100644 --- a/src/renderer/patches/shared.ts +++ b/src/renderer/patches/shared.ts @@ -17,6 +17,7 @@ export function addPatch

(p: P) { const { patches, ...globals } = p; for (const patch of patches as Patch[]) { + if (!Array.isArray(patch.find)) patch.find = [patch.find]; if (!Array.isArray(patch.replacement)) patch.replacement = [patch.replacement]; for (const r of patch.replacement) { if (typeof r.replace === "string") r.replace = r.replace.replaceAll("$self", "VCDP");