diff --git a/src/plugins/pictureInPicture/index.tsx b/src/plugins/pictureInPicture/index.tsx index dc6ddb0b..4b6f8797 100644 --- a/src/plugins/pictureInPicture/index.tsx +++ b/src/plugins/pictureInPicture/index.tsx @@ -28,8 +28,8 @@ export default definePlugin({ { find: ".nonMediaAttachment]", replacement: { - match: /\.nonMediaAttachment\].{0,10}children:\[\S/, - replace: "$&&&$self.renderPiPButton()," + match: /\.nonMediaAttachment\].{0,10}children:\[(\S)/, + replace: "$&,$1&&$self.renderPiPButton()," }, }, ],