Skip to content

Commit

Permalink
Add support for edge to blank tab closing
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceemotion committed Mar 22, 2024
1 parent 8cc119a commit 0662f1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/actions/closeBlankPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { mapTabIds } from "../utils/tabs";

export default async function closeBlankPages() {
const tabs = await chrome.tabs.query({});
const blankTabs = tabs.filter((tab) => tab.url === 'chrome://newtab/');
const blankTabs = tabs.filter((tab) => (
tab.url === 'chrome://newtab/' ||
tab.url === 'about:blank' ||
tab.url === 'edge://newtab/'
));

console.log(
`Found ${blankTabs.length} blank tabs, closing`,
Expand Down

0 comments on commit 0662f1a

Please # to comment.