mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 13:12:07 +00:00
@ -100,9 +100,7 @@ function observeMenu(options) {
|
|||||||
// remove native listeners
|
// remove native listeners
|
||||||
cloneButton(".player-minimize-button").onclick = async () => {
|
cloneButton(".player-minimize-button").onclick = async () => {
|
||||||
const isUsingNativePiP = await global.togglePictureInPicture();
|
const isUsingNativePiP = await global.togglePictureInPicture();
|
||||||
if (!isUsingNativePiP) {
|
setTimeout(() => $("#player").click());
|
||||||
setTimeout(() => $("#player").click());
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// allows easily closing the menu by programmatically clicking outside of it
|
// allows easily closing the menu by programmatically clicking outside of it
|
||||||
|
|||||||
Reference in New Issue
Block a user