aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pictureInPicture.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pictureInPicture.tsx')
-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(),"
},
},
],