1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

PictureInPicture: Fix button not showing up (#3014)

This commit is contained in:
Lumap 2024-11-14 23:57:16 +01:00 committed by sadan
parent eeeb4d46b6
commit 62c59c0456
No known key found for this signature in database

View file

@ -30,10 +30,10 @@ export default definePlugin({
{ {
find: ".removeMosaicItemHoverButton),", find: ".removeMosaicItemHoverButton),",
replacement: { replacement: {
match: /\.nonMediaMosaicItem\]:!(\i).{0,50}?children:\[\S,(\S)/, match: /\.nonMediaMosaicItem\]:.{0,40}children:\[(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
replace: "$&,$1&&$2&&$self.renderPiPButton()," replace: "$&$1&&$2&&$self.renderPiPButton(),"
}, }
}, }
], ],
renderPiPButton: ErrorBoundary.wrap(() => { renderPiPButton: ErrorBoundary.wrap(() => {