Commit 79f634d8 authored by yPhil's avatar yPhil
Browse files

Favicon error:null

parent ece61177
Pipeline #418153 passed with stage
in 30 seconds
......@@ -540,20 +540,20 @@ PTL.feed = {
.addClass('folded');
}
// if (feedIconHash) {
// $favIcon.attr('src', '/favicons/' + feedIconHash + '.favicon');
// } else {
// await PTL.feed.fetchIcon(feedHost).then((iconhash) => {
// if (iconhash) {
// $favIcon.attr('src', '/favicons/' + iconhash + '.favicon');
// $dataStore.data('iconhash', iconhash);
// PTL.tab.saveTabs();
// }
// }).catch((error) => {
// console.log('Fav: %s (%s)', JSON.stringify(error), feedUrl);
// $favIcon.addClass('icon-rss');
// });
// }
if (feedIconHash) {
$favIcon.attr('src', '/favicons/' + feedIconHash + '.favicon');
} else {
await PTL.feed.fetchIcon(feedHost).then((iconhash) => {
if (iconhash) {
$favIcon.attr('src', '/favicons/' + iconhash + '.favicon');
$dataStore.data('iconhash', iconhash);
PTL.tab.saveTabs();
}
}).catch((error) => {
console.log('Fav: %s (%s)', JSON.stringify(error), feedUrl);
$favIcon.addClass('icon-rss');
});
}
if ($dataStore.data('status') == 'on') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment