diff options
author | Paul Bouchon <mail@bitpshr.net> | 2018-11-15 02:12:19 +0800 |
---|---|---|
committer | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-11-15 02:43:10 +0800 |
commit | f6e042b7b12fec755b0a91ff24a1e812f65b638d (patch) | |
tree | 299e98d7589a42a6ce3acc6299ac8f155a67484e /app/scripts | |
parent | 46b29a50f095aa11eb9266b06dc86bcc9c92ce01 (diff) | |
download | tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.tar tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.tar.gz tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.tar.bz2 tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.tar.lz tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.tar.xz tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.tar.zst tangerine-wallet-browser-f6e042b7b12fec755b0a91ff24a1e812f65b638d.zip |
1102: use meta title if it exists before title
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/contentscript.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js index ee38ee3ab..92e382ea5 100644 --- a/app/scripts/contentscript.js +++ b/app/scripts/contentscript.js @@ -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 } |