pictureInPicture: don't show PiP button on normal file (#1725)

This commit is contained in:
AutumnVN 2023-09-13 04:11:53 +07:00 committed by GitHub
parent a95311ef2c
commit cf7c4d63b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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