1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

1102: use meta title if it exists before title

This commit is contained in:
Paul Bouchon 2018-11-14 13:12:19 -05:00 committed by Dan Finlay
parent 46b29a50f0
commit f6e042b7b1

View File

@ -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
}