mirror of https://github.com/keeweb/keeweb
fix #1655: selecting downloaded favicon automatically
parent
c24fe2806c
commit
ddd242b9df
|
@ -70,6 +70,9 @@ class IconSelectView extends View {
|
|||
.addClass('icon-select__icon--custom-selected')
|
||||
.append(img);
|
||||
this.downloadingFavicon = false;
|
||||
|
||||
const id = this.model.file.addCustomIcon(this.special.download.data);
|
||||
this.emit('select', { id, custom: true });
|
||||
};
|
||||
img.onerror = (e) => {
|
||||
logger.error('Favicon download error: ' + url, e);
|
||||
|
|
Loading…
Reference in New Issue