From 7629594158bd0b939c95872b85113c19ee7681c6 Mon Sep 17 00:00:00 2001 From: Atrian Wagner <411004+skullbunnygalaxy@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:50:14 -0400 Subject: [PATCH] patch to fix login. --- assets/js/styles.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/styles.js b/assets/js/styles.js index 6edf9cc5..33d5f16f 100644 --- a/assets/js/styles.js +++ b/assets/js/styles.js @@ -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;