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:
@ -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") {
|
||||
|
Reference in New Issue
Block a user