put div wrapper in the video's parent node light dom for correct context

This commit is contained in:
Jonathan Dawson
2019-11-19 19:08:14 -06:00
parent d38daa5ffa
commit 30d9d40ecb

View File

@@ -268,6 +268,8 @@
// insert before parent to bypass overlay // insert before parent to bypass overlay
this.parent.parentElement.insertBefore(fragment, this.parent); this.parent.parentElement.insertBefore(fragment, this.parent);
break; break;
case (location.hostname == 'tv.apple.com'):
this.parent.getRootNode().host.prepend(fragment);
default: default:
// Note: when triggered via a MutationRecord, it's possible that the // Note: when triggered via a MutationRecord, it's possible that the
@@ -551,6 +553,7 @@
controller.classList.add('vsc-manual'); controller.classList.add('vsc-manual');
controller.classList.toggle('vsc-hidden'); controller.classList.toggle('vsc-hidden');
} else if (action === 'blink') { } else if (action === 'blink') {
console.log(controller)
// if vsc is hidden, show it briefly to give the use visual feedback that the action is excuted. // if vsc is hidden, show it briefly to give the use visual feedback that the action is excuted.
if(controller.classList.contains('vsc-hidden') || controller.blinkTimeOut !== undefined){ if(controller.classList.contains('vsc-hidden') || controller.blinkTimeOut !== undefined){
clearTimeout(controller.blinkTimeOut); clearTimeout(controller.blinkTimeOut);