Skip to content

Commit 373ab30

Browse files
committed
fuck chrome
1 parent f23152e commit 373ab30

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

chrome-extension/src/background/tabs.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const all = () => {
6565
};
6666

6767
export const tabsAll = async (tabs: chrome.tabs.Tab[]) => {
68+
if (tabs.length == 0) tabs = await getAllTabs();
6869
const data = {
6970
logic: 'tabs_all',
7071
tabs: tabs.map(tab => {

chrome-extension/src/background/windows.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ const _onRemoved = (windowId: number) => {
7373
};
7474

7575
const _onFocusChanged = (windowId: number) => {
76-
console.log('onFocusChanged', windowId);
7776
windowsAll();
7877
};
7978

0 commit comments

Comments
 (0)