Improved video full screen detection.

This commit is contained in:
2019-03-17 14:02:29 -05:00
parent 0428abcc6b
commit d5c2da57e5
3 changed files with 7 additions and 7 deletions

View File

@@ -162,12 +162,12 @@
// Functions
const controlManager = () => {
if (ytEnhancerMenu.style.display == "block") {
ytEnhancerMenu.style.display = "none";
slugInputTag.style.display = "none";
} else {
if (window.innerHeight == screen.height) {
ytEnhancerMenu.style.display = "block";
slugInputTag.style.display = "block";
} else {
ytEnhancerMenu.style.display = "none";
slugInputTag.style.display = "none";
}
}