Skip to content

Commit

Permalink
Merge branch 'master' into fix/change-rel
Browse files Browse the repository at this point in the history
  • Loading branch information
jaulz committed Jun 14, 2020
2 parents 0f00183 + f8c1a71 commit 0d51139
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/favicon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,8 @@ const getBestFavicon = (): BestFavicon => {

for (let i = 0; i < favicons.length; i++) {
const favicon = favicons[i]
const href = favicon.getAttribute('href')
const rel = favicon.getAttribute('rel')
const sizes = favicon.getAttribute('sizes')

if (!href) {
continue
}

if (!rel || rel.split(' ').indexOf('icon') === -1) {
continue
}

// If the link does not have a "sizes" attribute, we use it only if we haven't found anything else yet
if (!sizes) {
if (!bestFavicon) {
Expand Down

0 comments on commit 0d51139

Please sign in to comment.