about summary refs log tree commit diff stats
path: root/src/pages
diff options
context:
space:
mode:
authorManeraKai <manerakai@protonmail.com>2024-05-20 13:57:31 +0300
committerManeraKai <manerakai@protonmail.com>2024-05-20 13:57:31 +0300
commit9d750897ec4b36766ca876549c0af31746f9c05b (patch)
tree91942ab1ab52ce8138297746ad75bcb24c3a2bab /src/pages
parentFixed bug. 2.8.3 => 2.8.4 (diff)
downloadlibredirect-9d750897ec4b36766ca876549c0af31746f9c05b.zip
Cleaning code
Diffstat (limited to 'src/pages')
-rw-r--r--src/pages/options/index.js6
-rw-r--r--src/pages/options/widgets/general.js5
2 files changed, 3 insertions, 8 deletions
diff --git a/src/pages/options/index.js b/src/pages/options/index.js
index fcc51298..ec47f3c5 100644
--- a/src/pages/options/index.js
+++ b/src/pages/options/index.js
@@ -260,7 +260,7 @@ async function processCustomInstances(frontend, document) {
 /**
  * @param {string} frontend
  * @param {*} networks
- * @param {*} document
+ * @param {Document} document
  * @param {*} redirects
  * @param {*} blacklist
  */
@@ -393,7 +393,5 @@ function processTime(time) {
 		color = "red"
 		text = 'Server not found'
 	}
-	return {
-		color, text
-	}
+	return { color, text }
 }
diff --git a/src/pages/options/widgets/general.js b/src/pages/options/widgets/general.js
index 8322a378..64172287 100644
--- a/src/pages/options/widgets/general.js
+++ b/src/pages/options/widgets/general.js
@@ -206,10 +206,7 @@ document.getElementById("custom-exceptions-instance-form").addEventListener("sub
 	if (val) {
 		options = await utils.getOptions()
 		options.exceptions = exceptionsCustomInstances
-		browser.storage.local.set({ options }, () =>
-			nameCustomInstanceInput.value = ""
-		)
-
+		browser.storage.local.set({ options }, () => nameCustomInstanceInput.value = "")
 	}
 	calcExceptionsCustomInstances()
 })