Fix warning on dynamic-styles init

This commit is contained in:
Wolfsblvt 2024-07-02 02:15:44 +02:00
parent 21c064fc5b
commit 08d21e9b17
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export function initDynamicStyles() {
// Process all stylesheets on initial load
Array.from(document.styleSheets).forEach(sheet => {
try {
applyDynamicFocusStyles(sheet, { fromExtension: sheet.href.toLowerCase().includes('scripts/extensions') });
applyDynamicFocusStyles(sheet, { fromExtension: sheet.href?.toLowerCase().includes('scripts/extensions') == true });
} catch (e) {
console.warn('Failed to process stylesheet on initial load:', e);
}