mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Change to using hostname
This commit is contained in:
parent
e8370121d5
commit
af977840c6
2 changed files with 2 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 569086c469b78db30dc797563a1399b520edfd08
|
||||
Subproject commit b006ca7ed0476475d2a930a0efd2483ef85f3e25
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue