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:
parent
46b29a50f0
commit
f6e042b7b1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user