Tried further Improving video full screen detection.

This commit is contained in:
2019-03-29 15:51:40 -05:00
parent d5c2da57e5
commit 1848bc5b6d
3 changed files with 12 additions and 10 deletions

View File

@@ -162,13 +162,15 @@
// Functions
const controlManager = () => {
if (window.innerHeight == screen.height) {
ytEnhancerMenu.style.display = "block";
slugInputTag.style.display = "block";
} else {
ytEnhancerMenu.style.display = "none";
slugInputTag.style.display = "none";
}
setTimeout(function () {
if (window.innerHeight !== screen.height) {
ytEnhancerMenu.style.display = "block";
slugInputTag.style.display = "block";
} else {
ytEnhancerMenu.style.display = "none";
slugInputTag.style.display = "none";
}
}, 200);
}
const downloadVideo = () => {