Skip to content

Commit

Permalink
patch to fix login.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullbunnygalaxy committed Mar 13, 2024
1 parent f6c14a6 commit 7629594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ let styleText = "";

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

0 comments on commit 7629594

Please sign in to comment.