Fixed bug where url protocol would appear as undefined

Closes https://github.com/libredirect/libredirect/issues/478
This commit is contained in:
Hygna 2022-10-12 17:07:04 +01:00
parent 0e94dbf2f3
commit 5a927da809
No known key found for this signature in database
2 changed files with 1 additions and 2 deletions

View File

@ -240,7 +240,7 @@ browser.storage.local.get("options", r => {
if (instanceType == "url") {
if (nameCustomInstanceInput.validity.valid) {
let url = new URL(nameCustomInstanceInput.value)
val = `${url.network}//${url.host}`
val = `${url.protocol}//${url.host}`
if (!exceptionsCustomInstances.url.includes(val)) exceptionsCustomInstances.url.push(val)
}
} else if (instanceType == "regex") {

View File

@ -30,7 +30,6 @@ body {
font-family: "Inter";
background-color: var(--bg-main);
color: var(--text);
overflow-x: hidden;
}
body.rtl {