fix window button patch

This commit is contained in:
Vendicated committed 2025-04-13 14:29:13 +02:00
1 parent 43f59cefda
commit 49784bc1aa
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -17,7 +17,6 @@ export function addPatch<P extends PatchData>(p: P) {
const { patches, ...globals } = p;
for (const patch of patches) {
// @ts-expect-error outdated types don't have addPatch yet
// TODO: Update types
Vencord.Plugins.addPatch(patch, "Vesktop", "VesktopPatchGlobals");
}
+1 -1
View File
@@ -13,7 +13,7 @@ addPatch({
replacement: [
{
// eslint-disable-next-line no-useless-escape
match: /\i\.window\.(close|minimize|maximize)/,
match: /\i\.window\.(close|minimize|maximize)/g,
replace: `VesktopNative.win.$1`
},
{