From e8370121d56ace9b59669cf9a8f61d35b02417aa Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 11 Jul 2023 17:14:43 -0400 Subject: [PATCH] Ignore port when checking if on invidious instance --- maze-utils | 2 +- src/content.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maze-utils b/maze-utils index bfa12c96..569086c4 160000 --- a/maze-utils +++ b/maze-utils @@ -1 +1 @@ -Subproject commit bfa12c9604246bf92f5934f40818de58c3811943 +Subproject commit 569086c469b78db30dc797563a1399b520edfd08 diff --git a/src/content.ts b/src/content.ts index 2f15496a..db307e3f 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)) { + if (!isFirefoxOrSafari() && Config.config.invidiousInstances.includes(new URL(document.URL).host.split(":")[0])) { window.addEventListener("DOMContentLoaded", () => { const head = document.getElementsByTagName("head")[0];