about summary refs log tree commit diff stats
path: root/src/pages/options/index.js
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2023-02-06 19:56:09 +0300
committerManeraKai <manerakai@protonmail.com>2023-02-06 19:56:09 +0300
commit97365e1237fc637cf1cfa7effc5d0832502da575 (patch)
treed6a037b5a463f7a7ec92537e07430cbfcc43a132 /src/pages/options/index.js
parentAdded Suds: https://github.com/libredirect/libredirect/issues/595 (diff)
downloadlibredirect-97365e1237fc637cf1cfa7effc5d0832502da575.zip
Made instance input placeholder better and dynamic https://github.com/libredirect/libredirect/issues/620
Diffstat (limited to 'src/pages/options/index.js')
-rw-r--r--src/pages/options/index.js1
1 files changed, 1 insertions, 0 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]