Procházet zdrojové kódy

Fixed bug in CONSTANT VIGILANCE feature

master
Said Achmiz před 6 roky
rodič
revize
7dea55b738
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/contentScript.js

+ 2
- 2
src/contentScript.js Zobrazit soubor

@@ -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)

Načítá se…
Zrušit
Uložit