Skip to content

Commit

Permalink
fix: dashboard window auto-hide when running workflow (AutomaApp#1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kholid060 committed Sep 18, 2023
1 parent 82c0af0 commit efcf855
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/background/BackgroundUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ class BackgroundUtils {

if (updateTab) {
windowOptions.focused = true;
} else {
windowOptions.state = 'minimized';
}

await browser.windows.create(windowOptions);
Expand Down
1 change: 0 additions & 1 deletion src/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export async function getActiveTab() {
if (isDashboard) {
await browser.windows.update(browserWindow.id, {
focused: false,
state: 'minimized',
});
} else if (browserWindow.focused) {
windowId = browserWindow.id;
Expand Down

0 comments on commit efcf855

Please sign in to comment.