Skip to content

Commit 7629594

Browse files
patch to fix login.
1 parent f6c14a6 commit 7629594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/styles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ let styleText = "";
22

33
for (let i = 0; i < document.styleSheets.length; i++) {
44
const styleSheet = document.styleSheets[i];
5-
if (new URL(styleSheet.href).hostname !== window.location.hostname) {
5+
if (styleSheet.href && new URL(styleSheet.href).hostname !== window.location.hostname) {
66
// We can't access cross-origin stylesheets, which are often injected by
77
// extensions.
88
continue;

0 commit comments

Comments
 (0)