Skip to content

Commit

Permalink
fix: Downgrade when launching ui
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhua committed Aug 17, 2024
1 parent 87410eb commit 3c28c22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions background.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ async function download(downloadItem, rpcItem) {

let result = true;

downloadItem.multiTask = downloadItem.url.includes('\n');
if (!("multiTask" in downloadItem)) {
downloadItem.multiTask = downloadItem.url.includes('\n');
}

if (downloadItem.type == "DOWNLOAD_VIA_BROWSER") {
try {
Expand Down Expand Up @@ -344,9 +346,9 @@ async function launchUI(info) {
chrome.windows.update(tabs[0].windowId, {
focused: true
});
chrome.tabs.update(tabs[0].id, {
active: true
});
let prop = { active: true };
if (webUiUrl != index) prop.url = webUiUrl;
chrome.tabs.update(tabs[0].id, prop);
return;
}
if (Configs.webUIOpenStyle == "window") {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_appName__",
"short_name": "A2E",
"version": "2.5.3",
"version": "2.5.4",
"manifest_version": 3,
"minimum_chrome_version": "100.0.0",
"default_locale": "en",
Expand Down

0 comments on commit 3c28c22

Please sign in to comment.