Fixed bug in CONSTANT VIGILANCE feature

This commit is contained in:
Said Achmiz 2019-02-02 23:17:17 -05:00
parent 8e64c1f266
commit 7dea55b738

View File

@ -60,8 +60,8 @@ function startConstantVigilance() {
var observer = new MutationObserver((mutationsList, observer) => {
var shouldKillSticky = false;
for (var mutation of mutationsList) {
if (mutation.target.style.position == 'fixed' ||
mutation.target.style.position == 'sticky')
if (getComputedStyle(mutation.target).position == 'fixed' ||
getComputedStyle(mutation.target).position == 'sticky')
shouldKillSticky = true;
}
if (shouldKillSticky)