From af977840c607a8c95468b28d795013449b372ccc Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 11 Jul 2023 17:22:23 -0400 Subject: Change to using hostname --- maze-utils | 2 +- src/content.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maze-utils b/maze-utils index 569086c4..b006ca7e 160000 --- a/maze-utils +++ b/maze-utils @@ -1 +1 @@ -Subproject commit 569086c469b78db30dc797563a1399b520edfd08 +Subproject commit b006ca7ed0476475d2a930a0efd2483ef85f3e25 diff --git a/src/content.ts b/src/content.ts index db307e3f..7a23a0e5 100644 --- a/src/content.ts +++ b/src/content.ts @@ -2388,7 +2388,7 @@ function hotkeyListener(e: KeyboardEvent): void { * Adds the CSS to the page if needed. Required on optional sites with Chrome. */ function addCSS() { - if (!isFirefoxOrSafari() && Config.config.invidiousInstances.includes(new URL(document.URL).host.split(":")[0])) { + if (!isFirefoxOrSafari() && Config.config.invidiousInstances.includes(new URL(document.URL).hostname)) { window.addEventListener("DOMContentLoaded", () => { const head = document.getElementsByTagName("head")[0]; -- cgit v1.2.3