mirror of
https://github.com/SoPat712/videospeed.git
synced 2025-08-22 02:18:45 -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');
|
container.classList.add('tc-videoController');
|
||||||
controls.classList.add('tc-controls');
|
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);
|
fragment.appendChild(container);
|
||||||
this.video.classList.add('tc-initialized');
|
this.video.classList.add('tc-initialized');
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
"https://teamtreehouse.com/*",
|
"https://teamtreehouse.com/*",
|
||||||
"https://www.instagram.com/*",
|
"https://www.instagram.com/*",
|
||||||
"https://www.twitter.com/*",
|
"https://www.twitter.com/*",
|
||||||
"http://www.lynda.com/*",
|
"https://www.lynda.com/*",
|
||||||
"http://www.hitbox.tv/*",
|
"http://www.hitbox.tv/*",
|
||||||
"https://vine.co/*"
|
"https://vine.co/*"
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user