So I'm testing mv3 in Chrome Version
81.0.3996.0 canary, and changed
browser_action to to
action in manifest.json, and it's not working.
I also tried changing chrome.browserAction to chrome.action in service worker, and it also doesn't work.
I'm totally ok if it's not ready yet, but I just want to confirm I'm not doing it wrong.
manifest.json:
{
"name": "3",
"version": "0.0.1",
"description": "MV3",
"manifest_version": 3,
"action": {}, // this doesn't work, but "browser_action" works
"permissions": [],
"background": {
"service_worker": "sw.js"
}
}
sw.js:
// this doesn't work, but chrome.browserAction works:
chrome.action.onClicked.addListener(() => {
chrome.tabs.create({ url: "index.html" });
});
index.html:
<html>
<h1>MV3</h1>
</html>