Manifest V3 favicons api
-
888larson last edited by leocg
Opera for Windows 97.0.4719.63
The bookmarks extension I use (https://github.com/Kiuryy/Bookmark_Sidebar) recently updated from Manifest V2 to v3 and all of my favicons disappeared. I reached out to the developer and he said Opera does not yet support the V3 favicons API. Any idea when this will be fixed?
TIA,
Jay -
888larson last edited by
Workaround.
* Returns the data url of the favicon of the given url * * @param {object} opts * @returns {Promise} */ this.getFavicon = async (opts) => { if (/OPERA|OPR\//i.test(navigator.userAgent)) { // Workaround for Opera which does not have a "favicon" API yet return `https://www.google.com/s2/favicons?domain=${encodeURIComponent(opts.url)}&sz=32`; } else { return $.api.runtime.getURL("_favicon") + "?pageUrl=" + encodeURIComponent(opts.url) + "&size=32"; } };
-