about summary refs log tree commit diff stats
path: root/src/pages
diff options
context:
space:
mode:
authorHygna <hygna@proton.me>2022-10-01 11:17:32 +0100
committerHygna <hygna@proton.me>2022-10-01 11:17:32 +0100
commite21ecb4e1d640add426865d5719ba8cd63eab977 (patch)
treed1e24c6b465dac81c50d10bba9bca755f8d3b095 /src/pages
parentSquashed a few bugs (diff)
downloadlibredirect-e21ecb4e1d640add426865d5719ba8cd63eab977.zip
Unify Localstorage
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/background/background.js3
-rw-r--r--src/pages/options/index.html8
-rw-r--r--src/pages/options/widgets/about.ejs8
-rw-r--r--src/pages/options/widgets/services.js2
4 files changed, 11 insertions, 10 deletions
diff --git a/src/pages/background/background.js b/src/pages/background/background.js
index 3a900609..5e164d58 100644
--- a/src/pages/background/background.js
+++ b/src/pages/background/background.js
@@ -3,6 +3,7 @@
 import generalHelper from "../../assets/javascripts/general.js"

 import utils from "../../assets/javascripts/utils.js"

 import servicesHelper from "../../assets/javascripts/services.js"

+import initHelper from "../../assets/javascripts/init.js"

 

 window.browser = window.browser || window.chrome

 

@@ -38,7 +39,7 @@ function initDefaults() {
 			.then(async data => {

 				browser.storage.local.set({ blacklists: JSON.parse(data) }, async () => {

 					await generalHelper.initDefaults()

-					await servicesHelper.initDefaults()

+					await initHelper.initDefaults()

 				})

 			})

 	})

diff --git a/src/pages/options/index.html b/src/pages/options/index.html
index 71d04fd0..384b32bd 100644
--- a/src/pages/options/index.html
+++ b/src/pages/options/index.html
@@ -3252,19 +3252,19 @@
 <div class="about">
   <div class="some-block option-block">
     <h4>Donate: ♥️</h4>
-    <h4><a href='https://libredirect.github.io/donate'>https://libredirect.github.io/donate</a> </h4>
+    <h4><a href='https://libredirect.codeberg.page/donate'>https://libredirect.codeberg.page/donate</a> </h4>
   </div>
   <div class="some-block option-block">
     <h4>FAQ:</h4>
-    <h4><a href='https://libredirect.github.io/faq'>https://libredirect.github.io/faq</a></h4>
+    <h4><a href='https://libredirect.codeberg.page/faq'>https://libredirect.codeberg.page/faq</a></h4>
   </div>
   <div class="some-block option-block">
     <h4>Docs:</h4>
-    <h4><a href='https://libredirect.github.io/docs'>https://libredirect.github.io/docs</a></h4>
+    <h4><a href='https://libredirect.codeberg.page/docs'>https://libredirect.codeberg.page/docs</a></h4>
   </div>
   <div class="some-block option-block">
     <h4>Source Code:</h4>
-    <h4><a href='https://libredirect.github.io/source_code'>https://libredirect.github.io/source_code</a></h4>
+    <h4><a href='https://libredirect.codeberg.page/source_code'>https://libredirect.codeberg.page/source_code</a></h4>
   </div>
 </div>
 </section>
diff --git a/src/pages/options/widgets/about.ejs b/src/pages/options/widgets/about.ejs
index 99202141..63c5b027 100644
--- a/src/pages/options/widgets/about.ejs
+++ b/src/pages/options/widgets/about.ejs
@@ -6,19 +6,19 @@
 <div class="about">
   <div class="some-block option-block">
     <h4>Donate: ♥️</h4>
-    <h4><a href='https://libredirect.github.io/donate'>https://libredirect.github.io/donate</a> </h4>
+    <h4><a href='https://libredirect.codeberg.page/donate'>https://libredirect.codeberg.page/donate</a> </h4>
   </div>
   <div class="some-block option-block">
     <h4>FAQ:</h4>
-    <h4><a href='https://libredirect.github.io/faq'>https://libredirect.github.io/faq</a></h4>
+    <h4><a href='https://libredirect.codeberg.page/faq'>https://libredirect.codeberg.page/faq</a></h4>
   </div>
   <div class="some-block option-block">
     <h4>Docs:</h4>
-    <h4><a href='https://libredirect.github.io/docs'>https://libredirect.github.io/docs</a></h4>
+    <h4><a href='https://libredirect.codeberg.page/docs'>https://libredirect.codeberg.page/docs</a></h4>
   </div>
   <div class="some-block option-block">
     <h4>Source Code:</h4>
-    <h4><a href='https://libredirect.github.io/source_code'>https://libredirect.github.io/source_code</a></h4>
+    <h4><a href='https://libredirect.codeberg.page/source_code'>https://libredirect.codeberg.page/source_code</a></h4>
   </div>
 </div>
 </section>
diff --git a/src/pages/options/widgets/services.js b/src/pages/options/widgets/services.js
index 98e068a1..eb7f1ba7 100644
--- a/src/pages/options/widgets/services.js
+++ b/src/pages/options/widgets/services.js
@@ -40,7 +40,7 @@ function changeFrontendsSettings(service) {
 	}
 
 	if (config.services[service].embeddable) {
-		if (!config.services[service].frontends[divs[service].frontend.value].instanceList) {
+		if (!config.services[service].frontends[divs[service].frontend.value].embeddable) {
 			divs[service].embedFrontend.disabled = false
 			for (const frontend in config.services[service].frontends) {
 				if (config.services[service].frontends[frontend].embeddable) {