Fixed bug in CONSTANT VIGILANCE feature
This commit is contained in:
parent
8e64c1f266
commit
7dea55b738
@ -60,8 +60,8 @@ function startConstantVigilance() {
|
|||||||
var observer = new MutationObserver((mutationsList, observer) => {
|
var observer = new MutationObserver((mutationsList, observer) => {
|
||||||
var shouldKillSticky = false;
|
var shouldKillSticky = false;
|
||||||
for (var mutation of mutationsList) {
|
for (var mutation of mutationsList) {
|
||||||
if (mutation.target.style.position == 'fixed' ||
|
if (getComputedStyle(mutation.target).position == 'fixed' ||
|
||||||
mutation.target.style.position == 'sticky')
|
getComputedStyle(mutation.target).position == 'sticky')
|
||||||
shouldKillSticky = true;
|
shouldKillSticky = true;
|
||||||
}
|
}
|
||||||
if (shouldKillSticky)
|
if (shouldKillSticky)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user