about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/assets/javascripts/services.js8
-rw-r--r--src/manifest.json2
-rw-r--r--src/updates/updates.xml2
3 files changed, 5 insertions, 7 deletions
diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js
index 8ff2318f..e51a1d43 100644
--- a/src/assets/javascripts/services.js
+++ b/src/assets/javascripts/services.js
@@ -62,13 +62,12 @@ async function redirectAsync(url, type, initiator, forceRedirection) {
 }
 
 /**
- * @param url
- * @param frontend
- * @param randomInstance
+ * @param {URL} url
+ * @param {string} frontend
+ * @param {string} randomInstance
  * @returns {undefined|string}
  */
 function rewrite(url, frontend, randomInstance) {
-	if (!frontend || !randomInstance) return
 	switch (frontend) {
 		case "hyperpipe": {
 			return `${randomInstance}${url.pathname}${url.search}`.replace(/\/search\?q=.*/, searchQuery => searchQuery.replace("?q=", "/"))
@@ -316,7 +315,6 @@ function rewrite(url, frontend, randomInstance) {
 			if (notExchangeRegex) {
 				return `${randomInstance}/exchange/${notExchangeRegex[0]}${url.pathname}${url.search}`
 			}
-			// "Default case"
 			return `${randomInstance}${url.pathname}${url.search}`
 		}
 		case "biblioReads": {
diff --git a/src/manifest.json b/src/manifest.json
index 13908f0e..0cacd75f 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -1,7 +1,7 @@
 {
 	"name": "__MSG_extensionName__",
 	"description": "__MSG_extensionDescription__",
-	"version": "2.8.3",
+	"version": "2.8.4",
 	"manifest_version": 2,
 	"browser_specific_settings": {
 		"gecko": {
diff --git a/src/updates/updates.xml b/src/updates/updates.xml
index c6d151cc..957f01da 100644
--- a/src/updates/updates.xml
+++ b/src/updates/updates.xml
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
     <app appid='oladmjdebphlnjjcnomfhhbfdldiimaf'>
-        <updatecheck codebase='https://github.com/libredirect/libredirect/releases/download/v2.8.3/libredirect-2.8.3.crx' version='2.8.3' />
+        <updatecheck codebase='https://github.com/libredirect/libredirect/releases/download/v2.8.4/libredirect-2.8.4.crx' version='2.8.4' />
     </app>
 </gupdate>