tracker: united check for sheet and trackerid
This commit is contained in:
parent
d477862edf
commit
b4fd3def10
1 changed files with 1 additions and 2 deletions
|
|
@ -26,8 +26,7 @@ export default function (app: App, opts: { checkCssInterval?: number }) {
|
||||||
try {
|
try {
|
||||||
const sheet = document.styleSheets[i]
|
const sheet = document.styleSheets[i]
|
||||||
const sheetID = styleSheetIDMap.get(sheet)
|
const sheetID = styleSheetIDMap.get(sheet)
|
||||||
if (!sheetID) continue
|
if (!sheetID || !trackedSheetIDs.has(sheetID)) continue
|
||||||
if (!trackedSheetIDs.has(sheetID)) continue
|
|
||||||
|
|
||||||
for (let j = 0; j < sheet.cssRules.length; j++) {
|
for (let j = 0; j < sheet.cssRules.length; j++) {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue