Skip to content

Commit

Permalink
Update packages/@o3r/styling/src/devkit/styling-devtools.message.serv…
Browse files Browse the repository at this point in the history
…ice.ts

Co-authored-by: Kilian Panot <kilian.panot@amadeus.com>
  • Loading branch information
cpaulve-1A and kpanot committed Jul 16, 2024
1 parent 82129d8 commit 2a67340
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const getCSSRulesAppliedOnRoot = () => Array.from(document.styleSheets)
try {
rules = styleSheet.cssRules || styleSheet.rules;
} catch (err) {
console.debug(`Could not access to stylesheet ${styleSheet.href}. This might be due to CORS issues.`, err);
console.debug(`Could not access to stylesheet ${styleSheet.href}. This might be due to network issues, please check:
- network connectivity
- CORS setup
- granted access to the stylesheet`, err);
}

return acc.concat(
Expand Down

0 comments on commit 2a67340

Please sign in to comment.