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/peertube/peertube.html | 84 ++++++++++++++++---------------- src/pages/options/peertube/peertube.js | 4 +- 2 files changed, 45 insertions(+), 43 deletions(-) (limited to 'src/pages/options/peertube') diff --git a/src/pages/options/peertube/peertube.html b/src/pages/options/peertube/peertube.html index fb95dd44..c4190498 100644 --- a/src/pages/options/peertube/peertube.html +++ b/src/pages/options/peertube/peertube.html @@ -144,57 +144,59 @@
- -
-
-

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/peertube/peertube.js b/src/pages/options/peertube/peertube.js index 7aa0f711..d01a6e08 100644 --- a/src/pages/options/peertube/peertube.js +++ b/src/pages/options/peertube/peertube.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