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