Fixed bug where url protocol would appear as undefined
Closes https://github.com/libredirect/libredirect/issues/478
This commit is contained in:
parent
0e94dbf2f3
commit
5a927da809
|
@ -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") {
|
||||
|
|
|
@ -30,7 +30,6 @@ body {
|
|||
font-family: "Inter";
|
||||
background-color: var(--bg-main);
|
||||
color: var(--text);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body.rtl {
|
||||
|
|
Loading…
Reference in New Issue