Skip to content

Commit

Permalink
Reset URL bar
Browse files Browse the repository at this point in the history
  • Loading branch information
obscuren committed Feb 14, 2015
1 parent befb4bc commit c29b01c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cmd/mist/assets/qml/views/browser.qml
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,15 @@ Rectangle {
});

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") {
// Adjust for a transparent sidebar Dapp
Expand Down

0 comments on commit c29b01c

Please sign in to comment.