Ignore port when checking if on invidious instance

This commit is contained in:
Ajay 2023-07-11 17:14:43 -04:00
parent 3175d7f8e9
commit e8370121d5
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit bfa12c9604246bf92f5934f40818de58c3811943
Subproject commit 569086c469b78db30dc797563a1399b520edfd08

View file

@ -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];