From 9dd8e72245038c51a5b49d5e1f8e34888171ea5b Mon Sep 17 00:00:00 2001 From: Hugo C Date: Sat, 28 Oct 2023 02:22:04 +0200 Subject: [PATCH] fix: PiP replacing video download button (#1910) --- src/plugins/pictureInPicture/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()," }, }, ],