mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Always listen for toggle
This commit is contained in:
@ -96,9 +96,7 @@ function observeMenu(options) {
|
||||
document.addEventListener(
|
||||
"apiLoaded",
|
||||
() => {
|
||||
if (!useNativePiP) {
|
||||
listenForToggle();
|
||||
}
|
||||
listenForToggle();
|
||||
// remove native listeners
|
||||
cloneButton(".player-minimize-button").onclick = async () => {
|
||||
const isUsingNativePiP = await global.togglePictureInPicture();
|
||||
|
||||
Reference in New Issue
Block a user