Browse Source

Fixed bug in CONSTANT VIGILANCE feature

master
Said Achmiz 6 years ago
parent
commit
7dea55b738
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/contentScript.js

+ 2
- 2
src/contentScript.js View File

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' ||
mutation.target.style.position == 'sticky')
if (getComputedStyle(mutation.target).position == 'fixed' ||
getComputedStyle(mutation.target).position == 'sticky')
shouldKillSticky = true; shouldKillSticky = true;
} }
if (shouldKillSticky) if (shouldKillSticky)

Loading…
Cancel
Save