mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Change to using hostname
This commit is contained in:
Submodule maze-utils updated: 569086c469...b006ca7ed0
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user