Skip to content

Commit

Permalink
PictureInPicture: Fix button not showing up (#3014)
Browse files Browse the repository at this point in the history
  • Loading branch information
lumap authored Nov 14, 2024
1 parent 8558b1a commit c4f6f15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/pictureInPicture/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export default definePlugin({
{
find: ".removeMosaicItemHoverButton),",
replacement: {
match: /\.nonMediaMosaicItem\]:!(\i).{0,50}?children:\[\S,(\S)/,
replace: "$&,$1&&$2&&$self.renderPiPButton(),"
},
},
match: /\.nonMediaMosaicItem\]:.{0,40}children:\[(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
replace: "$&$1&&$2&&$self.renderPiPButton(),"
}
}
],

renderPiPButton: ErrorBoundary.wrap(() => {
Expand Down

0 comments on commit c4f6f15

Please sign in to comment.