parent
6e86d4fe08
commit
00b76c0389
|
@ -87,7 +87,7 @@ class CSSHelp {
|
|||
"link[href*='styles']"
|
||||
);
|
||||
const style: HTMLStyleElement | null = this.doc?.querySelector('style');
|
||||
if (link) {
|
||||
if (link?.sheet?.cssRules?.length) {
|
||||
return link.sheet;
|
||||
} else if (style) {
|
||||
return style.sheet;
|
||||
|
|
Loading…
Reference in New Issue