diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/pictureInPicture.tsx | 4 |
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()," }, }, ], |