mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-12-03 15:22:17 -08:00
fix: update switch device and notifications patch (#688)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -13,7 +13,7 @@ addPatch({
|
||||
replacement: {
|
||||
// FIXME: fix eslint rule
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /\.isPlatformEmbedded(?=\?\i\.DesktopNotificationTypes\.ALL)/g,
|
||||
match: /\.isPlatformEmbedded(?=\?\i\.\i\.ALL)/g,
|
||||
replace: "$&||true"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ addPatch({
|
||||
find: "lastOutputSystemDevice.justChanged",
|
||||
replacement: {
|
||||
// eslint-disable-next-line no-useless-escape
|
||||
match: /(\i)\.default\.getState\(\).neverShowModal/,
|
||||
match: /(\i)\.\i\.getState\(\).neverShowModal/,
|
||||
replace: "$& || $self.shouldIgnore($1)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user