pictureInPicture: don't show PiP button on normal file (#1725)
This commit is contained in:
parent
a95311ef2c
commit
cf7c4d63b6
|
@ -29,8 +29,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: ".onRemoveAttachment,",
|
find: ".onRemoveAttachment,",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.nonMediaAttachment.{0,10}children:\[(\i),/,
|
match: /\.nonMediaAttachment,!(\i).{0,7}children:\[(\i),/,
|
||||||
replace: "$&$1&&$self.renderPiPButton(),"
|
replace: "$&$1&&$2&&$self.renderPiPButton(),"
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue