mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2025-01-12 21:50:04 +00:00
Reset URL bar
This commit is contained in:
parent
befb4bc1c1
commit
c29b01ce75
@ -352,7 +352,15 @@ Rectangle {
|
|||||||
});
|
});
|
||||||
|
|
||||||
webView.runJavaScript("try{document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")}catch(e){}", function(topBarStyle){
|
webView.runJavaScript("try{document.querySelector(\"meta[name='ethereum-dapp-url-bar-style']\").getAttribute(\"content\")}catch(e){}", function(topBarStyle){
|
||||||
if (!topBarStyle) return;
|
if (!topBarStyle) {
|
||||||
|
showFullUrlBar(true);
|
||||||
|
navBarBackground.visible = true;
|
||||||
|
back.visible = true;
|
||||||
|
appInfoPane.anchors.leftMargin = 0;
|
||||||
|
appInfoPaneShadow.anchors.leftMargin = 0;
|
||||||
|
webview.anchors.topMargin = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (topBarStyle=="transparent") {
|
if (topBarStyle=="transparent") {
|
||||||
// Adjust for a transparent sidebar Dapp
|
// Adjust for a transparent sidebar Dapp
|
||||||
|
Loading…
Reference in New Issue
Block a user