diff options
author | ManeraKai <manerakai@protonmail.com> | 2023-05-12 08:57:20 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2023-05-12 08:57:20 +0300 |
commit | 8f8c2a24e423554ddafb67def4648991cb017fe2 (patch) | |
tree | ee58f9f095ae21c4c9c55b6dd47b82df0a6c6643 /src/pages/options | |
parent | ignored http from url exclusions https://github.com/libredirect/browser_exten... (diff) | |
download | libredirect-8f8c2a24e423554ddafb67def4648991cb017fe2.zip |
Fixed exclusions in a better way https://github.com/libredirect/browser_extension/issues/665
Diffstat (limited to 'src/pages/options')
-rw-r--r-- | src/pages/options/widgets/general.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pages/options/widgets/general.js b/src/pages/options/widgets/general.js index 3dd52af5..a046b26f 100644 --- a/src/pages/options/widgets/general.js +++ b/src/pages/options/widgets/general.js @@ -152,14 +152,10 @@ function calcExceptionsCustomInstances() { } calcExceptionsCustomInstances() document.getElementById("custom-exceptions-instance-form").addEventListener("submit", async event => { - console.log('something plz.... :\')') event.preventDefault() let val if (instanceType == "url" && nameCustomInstanceInput.validity.valid) { val = nameCustomInstanceInput.value - const url = new URL(val) - val = url.href - val = val.replace(/^http:\/\//, 'https://') if (!exceptionsCustomInstances.url.includes(val)) exceptionsCustomInstances.url.push(val) } else if (instanceType == "regex") { val = nameCustomInstanceInput.value |