From 7dea55b738cb9c7cffd287a2d09e0fee89033448 Mon Sep 17 00:00:00 2001 From: Said Achmiz Date: Sat, 2 Feb 2019 23:17:17 -0500 Subject: [PATCH] Fixed bug in CONSTANT VIGILANCE feature --- src/contentScript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contentScript.js b/src/contentScript.js index 67f68db..b16ce96 100644 --- a/src/contentScript.js +++ b/src/contentScript.js @@ -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)