I am building a chrome extension and I use this code to open the popup in new window. (Using manifest v3) It suddenly stopped working today.
Uncaught TypeError: Cannot read properties of undefined (reading 'onClicked')
Yesterday it worked just fine and it corresponds with chrome extension documentation. Anyone knows what the issue could be?
Here is my code:
chrome.action.onClicked.addListener(tab => {
chrome.windows.create({
url: chrome.runtime.getURL("popup.html"),
type: "popup",
height: 800,
width: 516
}, function(win) {
});
});