Below is the content of my manifest.json file:
{
"manifest_version": 2,
"name": "PageEscape",
"version": "1.0",
"description": "",
"background": {
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": "escape_icon.png"
}
}
Additionally, here is the code inside my background.js file:
chrome.browserAction.onClicked.addListener(window.open("url", "_blank"))
The objective behind my Chrome extension is to provide users with a quick way to switch to another page, which I have initially selected. However, an issue arises when I enable the extension as it automatically redirects to the chosen webpage, and clicking on the extension icon in the browser does not function as intended. What modifications should I make to resolve this problem and achieve the desired functionality?