We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6c14a6 commit 7629594Copy full SHA for 7629594
assets/js/styles.js
@@ -2,7 +2,7 @@ let styleText = "";
2
3
for (let i = 0; i < document.styleSheets.length; i++) {
4
const styleSheet = document.styleSheets[i];
5
- if (new URL(styleSheet.href).hostname !== window.location.hostname) {
+ if (styleSheet.href && new URL(styleSheet.href).hostname !== window.location.hostname) {
6
// We can't access cross-origin stylesheets, which are often injected by
7
// extensions.
8
continue;
0 commit comments