Skip to content

Commit

Permalink
Fixed bug. 2.8.3 => 2.8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed May 1, 2024
1 parent fee58c5 commit 1b529ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -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=", "/"))
Expand Down Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/updates/updates.xml
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 1b529ed

Please sign in to comment.