aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2023-07-11 17:22:23 -0400
committerAjay <[email protected]>2023-07-11 17:22:23 -0400
commitaf977840c607a8c95468b28d795013449b372ccc (patch)
tree0935a21bce24af903421ce25548bf962e48aa0e4
parente8370121d56ace9b59669cf9a8f61d35b02417aa (diff)
downloadSponsorBlock-af977840c607a8c95468b28d795013449b372ccc.tar.gz
SponsorBlock-af977840c607a8c95468b28d795013449b372ccc.zip
Change to using hostname
m---------maze-utils0
-rw-r--r--src/content.ts2
2 files changed, 1 insertions, 1 deletions
diff --git a/maze-utils b/maze-utils
-Subproject 569086c469b78db30dc797563a1399b520edfd0
+Subproject b006ca7ed0476475d2a930a0efd2483ef85f3e2
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];