Skip to content

Commit

Permalink
1102: use meta title if it exists before title
Browse files Browse the repository at this point in the history
  • Loading branch information
bitpshr authored and danfinlay committed Nov 14, 2018
1 parent 46b29a5 commit f6e042b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/scripts/contentscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ function getSiteName (window) {
return siteName.content
}

const metaTitle = document.querySelector('head > meta[name="title"]')
if (metaTitle) {
return metaTitle.content
}

return document.title
}

Expand Down

0 comments on commit f6e042b

Please sign in to comment.