mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
Always listen for toggle
This commit is contained in:
@ -96,9 +96,7 @@ function observeMenu(options) {
|
|||||||
document.addEventListener(
|
document.addEventListener(
|
||||||
"apiLoaded",
|
"apiLoaded",
|
||||||
() => {
|
() => {
|
||||||
if (!useNativePiP) {
|
listenForToggle();
|
||||||
listenForToggle();
|
|
||||||
}
|
|
||||||
// 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user