Hide Native App settings section when no items are available

This commit is contained in:
Max Leiter 2018-08-18 12:48:58 -07:00
parent 8d5d6f0285
commit 50661b5947
3 changed files with 5 additions and 1 deletions

View File

@ -333,6 +333,8 @@ function initialize() {
return false;
});
$("#native-app").prop("hidden", false);
} else {
defaultClientButton.hide();
}

View File

@ -18,6 +18,8 @@ window.addEventListener("beforeinstallprompt", (installPromptEvent) => {
$(this).prop("hidden", true);
})
.prop("hidden", false);
$("#native-app").prop("hidden", false);
});
socket.on("configuration", function(data) {

View File

@ -14,7 +14,7 @@
</div>
<div class="row">
<div class="col-sm-12">
<div class="col-sm-12" id="native-app" hidden>
<h2>Native app</h2>
<button type="button" class="btn" id="webapp-install-button" hidden>Add The Lounge to Home screen</button>
<button type="button" class="btn" id="make-default-client">Open irc:// URLs with The Lounge</button>