aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAutumnVN <autumnvnchino@gmail.com>2023-09-13 04:11:53 +0700
committerGitHub <noreply@github.com>2023-09-12 23:11:53 +0200
commitcf7c4d63b6a8f11a4b8d96d39e4b5ca0c0cf4bc3 (patch)
tree9969a314a8da1cb52da6a5f959a761b6a7de14fa
parenta95311ef2cb4f22bd554de97a7b635b3e9d4de06 (diff)
downloadVencord-cf7c4d63b6a8f11a4b8d96d39e4b5ca0c0cf4bc3.tar.gz
Vencord-cf7c4d63b6a8f11a4b8d96d39e4b5ca0c0cf4bc3.tar.bz2
Vencord-cf7c4d63b6a8f11a4b8d96d39e4b5ca0c0cf4bc3.zip
pictureInPicture: don't show PiP button on normal file (#1725)
-rw-r--r--src/plugins/pictureInPicture.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pictureInPicture.tsx b/src/plugins/pictureInPicture.tsx
index 7a9e790..d10d42f 100644
--- a/src/plugins/pictureInPicture.tsx
+++ b/src/plugins/pictureInPicture.tsx
@@ -29,8 +29,8 @@ export default definePlugin({
{
find: ".onRemoveAttachment,",
replacement: {
- match: /\.nonMediaAttachment.{0,10}children:\[(\i),/,
- replace: "$&$1&&$self.renderPiPButton(),"
+ match: /\.nonMediaAttachment,!(\i).{0,7}children:\[(\i),/,
+ replace: "$&$1&&$2&&$self.renderPiPButton(),"
},
},
],