opr.sidebarAction.setIcon API is broken => "Access to extension API denied."
-
stefanvd last edited by stefanvd
Hi there,
I am updating my Opera extensions, Note Sidebar and Page Sidebar. However, I noticed that the API for changing the icon in the sidebar no longer works. Is this the correct API?
I use Opera: 116.0.5366.21
My Manifest V3 JavaScript code in the background script:opr.sidebarAction.setIcon({ path: "/images/icon38white.png"}, function() { if (chrome.runtime.lastError) { console.error(chrome.runtime.lastError); } else { console.log('Icon changed successfully'); } });
Doc API: https://help.opera.com/en/extensions/sidebar-action-api/#method-seticon
Screenshot of the error:
Thanks,
Stefan
Browser extension developer
www.stefanvd.net