From 5d4377c081d18d89e64184c60d3fa97504768c81 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Tue, 12 Apr 2022 02:27:39 +0300 Subject: Restructuring Settings Structure --- src/pages/options/lbry/lbry.html | 84 +++++++++++++++++++++------------------- src/pages/options/lbry/lbry.js | 4 +- 2 files changed, 46 insertions(+), 42 deletions(-) (limited to 'src/pages/options/lbry') diff --git a/src/pages/options/lbry/lbry.html b/src/pages/options/lbry/lbry.html index 6e0e43fe..40000076 100644 --- a/src/pages/options/lbry/lbry.html +++ b/src/pages/options/lbry/lbry.html @@ -144,56 +144,60 @@
-
-
-

Default Instances

-
-
-
-
-

Custom Instances

-
-
+
+
- - +

Default Instances

- -
-
-
-
-

Default Instances

-
-
-
-
-

Custom Instances

+
+
+
+

Custom Instances

+
+
+
+ + +
+
+
-
+
+
+

Default Instances

+
+
+
- - +

Custom Instances

- -
+
+
+ + +
+
+
+
- --> + - + \ No newline at end of file diff --git a/src/pages/options/lbry/lbry.js b/src/pages/options/lbry/lbry.js index 43ff74d3..75995213 100644 --- a/src/pages/options/lbry/lbry.js +++ b/src/pages/options/lbry/lbry.js @@ -16,8 +16,8 @@ protocolElement.addEventListener("change", ); function changeProtocolSettings(protocol) { - let normalDiv = document.getElementById("normal"); - let torDiv = document.getElementById("tor"); + let normalDiv = document.getElementsByClassName("normal")[0]; + let torDiv = document.getElementsByClassName("tor")[0]; if (protocol == 'normal') { normalDiv.style.display = 'block'; torDiv.style.display = 'none'; -- cgit 1.4.1