Moved ECIES to repo & added secondary title for webview

* ECIES moved from obscuren to ethereum
* Added html META[name=badge] to reflect menuItem.secondaryTitle
This commit is contained in:
obscuren
2015-02-14 00:25:47 +01:00
parent 396f1a0a33
commit 84f7c966f7
6 changed files with 18 additions and 6 deletions

View File

@ -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") {