fix broken patches

This commit is contained in:
Vendicated
2026-05-04 19:57:53 +02:00
parent dab413c376
commit 61ecf66936
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -11,13 +11,13 @@ addPatch({
{
find: "lastOutputSystemDevice.justChanged",
replacement: {
match: /(\i)\.\i\.getState\(\).neverShowModal/,
match: /\.getState\(\)\.neverShowModal(?=.{0,50}?(\i)\.lastDeviceConnected)/,
replace: "$& || $self.shouldIgnoreDevice($1)"
}
}
],
shouldIgnoreDevice(state: any) {
return Object.keys(state?.default?.lastDeviceConnected ?? {})?.[0] === "vencord-screen-share";
return Object.keys(state.lastDeviceConnected ?? {})[0] === "vencord-screen-share";
}
});