Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listen for extension icon click #42

Open
maxpatiiuk opened this issue Sep 25, 2022 · 1 comment
Open

Listen for extension icon click #42

maxpatiiuk opened this issue Sep 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@maxpatiiuk
Copy link
Owner

When user click on our extension in the list of extensions some action should happen.

Could possibly switch to the calendar tab, or open a new page by adding code like this to the Background/index.ts file:

chrome.action.onClicked.addListener(function () {
  chrome.tabs.create({ url: './src/public/background.html' });
});
@maxpatiiuk maxpatiiuk added the enhancement New feature or request label Sep 25, 2022
@jakeangus jakeangus self-assigned this Sep 26, 2022
@maxpatiiuk
Copy link
Owner Author

FYI, before action event can be intercept, we need to register the action in the manifest:
https://developer.chrome.com/docs/extensions/reference/action/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants