diff options
author | ManeraKai <manerakai@protonmail.com> | 2023-02-06 19:56:09 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2023-02-06 19:56:09 +0300 |
commit | 97365e1237fc637cf1cfa7effc5d0832502da575 (patch) | |
tree | d6a037b5a463f7a7ec92537e07430cbfcc43a132 | |
parent | Added Suds: https://github.com/libredirect/libredirect/issues/595 (diff) | |
download | libredirect-97365e1237fc637cf1cfa7effc5d0832502da575.zip |
Made instance input placeholder better and dynamic https://github.com/libredirect/libredirect/issues/620
-rw-r--r-- | src/pages/options/index.js | 1 | ||||
-rw-r--r-- | src/pages/options/widgets/services.pug | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/options/index.js b/src/pages/options/index.js index 61cc3061..a68fa718 100644 --- a/src/pages/options/index.js +++ b/src/pages/options/index.js @@ -165,6 +165,7 @@ function createList(frontend, networks, document, redirects, blacklist) { for (const network in networks) { if (redirects[frontend]) { if (redirects[frontend][network].length > 0) { + document.getElementById(frontend).getElementsByClassName("custom-instance")[0].placeholder = redirects[frontend].clearnet[0] document.getElementById(frontend) .getElementsByClassName(network)[0] .getElementsByClassName("checklist")[0] diff --git a/src/pages/options/widgets/services.pug b/src/pages/options/widgets/services.pug index e23aa08e..c72a2b83 100644 --- a/src/pages/options/widgets/services.pug +++ b/src/pages/options/widgets/services.pug @@ -44,7 +44,7 @@ each val, service in services form(class="custom-instance-form") div(class="some-block option-block") - input(class="custom-instance" placeholder=`http://${frontend}.com` type="url" ) + input(class="custom-instance" type="url" ) button(class="add add-instance" type="submit") svg(xmlns="https://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="currentColor") path(d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z") |