mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-10-29 18:30:35 -04:00
ignore keydown event when there is no video on apple tv
This commit is contained in:
@@ -399,8 +399,8 @@
|
|||||||
|
|
||||||
// Ignore keydown event if typing in a page without vsc
|
// Ignore keydown event if typing in a page without vsc
|
||||||
if (document.querySelector('apple-tv-plus-player')) {
|
if (document.querySelector('apple-tv-plus-player')) {
|
||||||
if (queryShadowVideo(document.querySelector('apple-tv-plus-player')).length > 0) {
|
if (queryShadowVideo(document.querySelector('apple-tv-plus-player')).length == 0) {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (!document.querySelector(".vsc-controller")) {
|
else if (!document.querySelector(".vsc-controller")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user