pictureInPicture: don't show PiP button on normal file (#1725)
This commit is contained in:
parent
a95311ef2c
commit
cf7c4d63b6
1 changed files with 2 additions and 2 deletions
|
@ -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(),"
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue