I'm currently in the process of developing a Chrome extension that will allow users to effectively manage open tabs within a specific application's website. Here is the current manifest file:
{
"manifest_version": 2,
"name": "AT Tabs",
"version": "0.1",
"permissions": ["activeTab", "tabs"],
"content_scripts": [{
"matches": ["<all_urls>"],
"js": ["main.js"]
}]
}
However, I am encountering an issue when trying to execute the following code snippet in the main.js file:
console.log(chrome.windows);
The console is displaying 'undefined' as the output. Any suggestions on why this might be happening? Both 'tabs' and 'activeTab' permissions have been granted, and the extension is being run in developer mode.