|
|
@ -334,12 +334,24 @@ Rectangle { |
|
|
|
} |
|
|
|
} |
|
|
|
z: 10 |
|
|
|
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: { |
|
|
|
onLoadingChanged: { |
|
|
|
if (loadRequest.status == WebEngineView.LoadSucceededStatus) { |
|
|
|
if (loadRequest.status == WebEngineView.LoadSucceededStatus) { |
|
|
|
webview.runJavaScript("document.title", function(pageTitle) { |
|
|
|
webview.runJavaScript("document.title", function(pageTitle) { |
|
|
|
menuItem.title = pageTitle; |
|
|
|
menuItem.title = pageTitle; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var topBarStyle |
|
|
|
//var topBarStyle |
|
|
|
webView.runJavaScript("document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")", function(topBarStyle){ |
|
|
|
webView.runJavaScript("document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")", function(topBarStyle){ |
|
|
|
if (topBarStyle=="transparent") { |
|
|
|
if (topBarStyle=="transparent") { |
|
|
|