Skip to content

Commit db29d7a

Browse files
committed
Update background.js
1 parent 28cfe89 commit db29d7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/background.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ chrome.tabs.onUpdated.addListener(function (tabId, changeInfo, tab) {
1616
if (chrome.runtime.lastError) { } else { }
1717
});
1818
}
19+
});
20+
21+
chrome.commands.onCommand.addListener((command) => {
22+
if (command === "open_popup_1" || command === "open_popup_2") {
23+
chrome.action.openPopup();
24+
}
1925
});

0 commit comments

Comments
 (0)