aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorPaul Bouchon <mail@bitpshr.net>2018-11-15 02:12:19 +0800
committerDan Finlay <542863+danfinlay@users.noreply.github.com>2018-11-15 02:43:10 +0800
commitf6e042b7b12fec755b0a91ff24a1e812f65b638d (patch)
tree299e98d7589a42a6ce3acc6299ac8f155a67484e /app/scripts
parent46b29a50f095aa11eb9266b06dc86bcc9c92ce01 (diff)
downloadtangerine-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.js5
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
}