tracker: united check for sheet and trackerid

This commit is contained in:
nick-delirium 2025-05-06 12:21:09 +02:00 committed by Delirium
parent d477862edf
commit b4fd3def10

View file

@ -26,8 +26,7 @@ export default function (app: App, opts: { checkCssInterval?: number }) {
try {
const sheet = document.styleSheets[i]
const sheetID = styleSheetIDMap.get(sheet)
if (!sheetID) continue
if (!trackedSheetIDs.has(sheetID)) continue
if (!sheetID || !trackedSheetIDs.has(sheetID)) continue
for (let j = 0; j < sheet.cssRules.length; j++) {
try {