mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-21 18:08:46 -04:00
don't allow negative offsetTop
This commit is contained in:
@@ -95,7 +95,7 @@ chrome.extension.sendMessage({}, function(response) {
|
||||
|
||||
container.classList.add('tc-videoController');
|
||||
controls.classList.add('tc-controls');
|
||||
container.style.top = this.video.offsetTop+"px";
|
||||
container.style.top = Math.max(this.video.offsetTop,0)+"px";
|
||||
|
||||
fragment.appendChild(container);
|
||||
this.video.classList.add('tc-initialized');
|
||||
|
@@ -29,7 +29,7 @@
|
||||
"https://teamtreehouse.com/*",
|
||||
"https://www.instagram.com/*",
|
||||
"https://www.twitter.com/*",
|
||||
"http://www.lynda.com/*",
|
||||
"https://www.lynda.com/*",
|
||||
"http://www.hitbox.tv/*",
|
||||
"https://vine.co/*"
|
||||
],
|
||||
|
Reference in New Issue
Block a user