瀏覽代碼

Fixed bug in CONSTANT VIGILANCE feature

master
Said Achmiz 6 年之前
父節點
當前提交
7dea55b738
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/contentScript.js

+ 2
- 2
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)

Loading…
取消
儲存