fix: PiP replacing video download button (#1910)

This commit is contained in:
Hugo C 2023-10-28 02:22:04 +02:00 committed by GitHub
parent aae790f1c1
commit 9dd8e72245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),"
},
},
],