diff --git a/src/plugins/pictureInPicture.tsx b/src/plugins/pictureInPicture.tsx index 7a9e7903..d10d42ff 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()," }, }, ],