about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorHygna <hygna@proton.me>2022-10-12 17:07:04 +0100
committerHygna <hygna@proton.me>2022-10-12 17:09:25 +0100
commit5a927da809e2028cb47f654485e76b85df9a5e23 (patch)
tree2927a29879f156fe8ec3e0cadabfb6c6f5f0155c /src
parentFixed some quora redirects (diff)
downloadlibredirect-5a927da809e2028cb47f654485e76b85df9a5e23.zip
Fixed bug where url protocol would appear as undefined
Closes https://github.com/libredirect/libredirect/issues/478
Diffstat (limited to 'src')
-rw-r--r--src/pages/options/widgets/general.js2
-rw-r--r--src/pages/stylesheets/styles.css1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/pages/options/widgets/general.js b/src/pages/options/widgets/general.js
index 75701bca..d133617b 100644
--- a/src/pages/options/widgets/general.js
+++ b/src/pages/options/widgets/general.js
@@ -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") {
diff --git a/src/pages/stylesheets/styles.css b/src/pages/stylesheets/styles.css
index fff81e5a..0df2f9fa 100644
--- a/src/pages/stylesheets/styles.css
+++ b/src/pages/stylesheets/styles.css
@@ -30,7 +30,6 @@ body {
 	font-family: "Inter";
 	background-color: var(--bg-main);
 	color: var(--text);
-	overflow-x: hidden;
 }
 
 body.rtl {