mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 14:59:59 +02:00
Refactor ZenSidebarManager to comment out unused code for fetching web panel icons
This commit is contained in:
parent
8efd7fecbe
commit
65782ccf69
1 changed files with 10 additions and 0 deletions
|
@ -461,6 +461,16 @@ var gZenBrowserManagerSidebar = {
|
||||||
_getWebPanelIcon(url, element) {
|
_getWebPanelIcon(url, element) {
|
||||||
let { preferredURI } = Services.uriFixup.getFixupURIInfo(url);
|
let { preferredURI } = Services.uriFixup.getFixupURIInfo(url);
|
||||||
element.setAttribute('image', `page-icon:${preferredURI.spec}`);
|
element.setAttribute('image', `page-icon:${preferredURI.spec}`);
|
||||||
|
//fetch(`https://s2.googleusercontent.com/s2/favicons?domain_url=${preferredURI.spec}`).then(async (response) => {
|
||||||
|
// if (response.ok) {
|
||||||
|
// let blob = await response.blob();
|
||||||
|
// let reader = new FileReader();
|
||||||
|
// reader.onload = function () {
|
||||||
|
// element.setAttribute('image', reader.result);
|
||||||
|
// };
|
||||||
|
// reader.readAsDataURL(blob);
|
||||||
|
// }
|
||||||
|
//});
|
||||||
},
|
},
|
||||||
|
|
||||||
_getBrowserById(id) {
|
_getBrowserById(id) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue