aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/qml/views/browser.qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-14 07:25:47 +0800
committerobscuren <geffobscura@gmail.com>2015-02-14 07:25:47 +0800
commit84f7c966f725ef0f5c62b4427857d112c0d1e828 (patch)
tree22eb1d46333f5cc32b92cb143599821e9861d462 /cmd/mist/assets/qml/views/browser.qml
parent396f1a0a33aaa0acf0f1381471c37dabb3caa94e (diff)
downloaddexon-84f7c966f725ef0f5c62b4427857d112c0d1e828.tar.gz
dexon-84f7c966f725ef0f5c62b4427857d112c0d1e828.tar.zst
dexon-84f7c966f725ef0f5c62b4427857d112c0d1e828.zip
Moved ECIES to repo & added secondary title for webview
* ECIES moved from obscuren to ethereum * Added html META[name=badge] to reflect menuItem.secondaryTitle
Diffstat (limited to 'cmd/mist/assets/qml/views/browser.qml')
-rw-r--r--cmd/mist/assets/qml/views/browser.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd/mist/assets/qml/views/browser.qml b/cmd/mist/assets/qml/views/browser.qml
index 04b2229ec..3cbabf0b6 100644
--- a/cmd/mist/assets/qml/views/browser.qml
+++ b/cmd/mist/assets/qml/views/browser.qml
@@ -333,6 +333,17 @@ Rectangle {
top: navBar.bottom
}
z: 10
+
+ Timer {
+ interval: 500; running: true; repeat: true
+ onTriggered: {
+ webview.runJavaScript("document.querySelector('meta[name=badge]').getAttribute('content')", function(badge) {
+ if (badge) {
+ menuItem.secondaryTitle = badge;
+ }
+ });
+ }
+ }
onLoadingChanged: {
if (loadRequest.status == WebEngineView.LoadSucceededStatus) {
@@ -340,6 +351,7 @@ Rectangle {
menuItem.title = pageTitle;
});
+
//var topBarStyle
webView.runJavaScript("document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")", function(topBarStyle){
if (topBarStyle=="transparent") {