Skip to content

Commit e9bec63

Browse files
committed
feat: add action listener to extension on toolbar icon click
1 parent 49a38f9 commit e9bec63

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/background.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ const uninstallUrl = `https://hackertab.dev/uninstall.html`
22
if (chrome.runtime.setUninstallURL) {
33
chrome.runtime.setUninstallURL(uninstallUrl)
44
}
5+
6+
chrome.action.onClicked.addListener(function () {
7+
chrome.tabs.create({ url: 'index.html', selected: true })
8+
})

0 commit comments

Comments
 (0)