mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +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
|
return siteName.content
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const metaTitle = document.querySelector('head > meta[name="title"]')
|
||||||
|
if (metaTitle) {
|
||||||
|
return metaTitle.content
|
||||||
|
}
|
||||||
|
|
||||||
return document.title
|
return document.title
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user