How to make the transition to the site by clicking on the icon in Chrome?

Hey all, something I tried a lot of options and not found.
Write a plugin for Chrome.
That would require clicking on the icon at the top right in the browser next to the menu, clicked on the project website.
Don't need a popup just a transition.
Who faced, prompt.
September 18th 19 at 23:44
1 answer
September 18th 19 at 23:46
Solution
chrome.browserAction.onClicked.addListener(function() {
 chrome.tabs.create({'url': "http://site.example.com"});
});
to open in the current tab, use chrome.tabs.update - Everette56 commented on September 18th 19 at 23:49
Yes, that's why it doesn't open =(
in the Manifesto tabs prescribed - Erwin_Jenki commented on September 18th 19 at 23:52
it turns out I'm stupid, I didn't get the download popup
Thank you very much) - Erwin_Jenki commented on September 18th 19 at 23:55

Find more questions by tags Extensions for browsersGoogle Chrome