Merge pull request #2705 from MaxLeiter/hide-native
Hide `Native App` settings section when no items are available
This commit is contained in:
commit
dbd6bee487
@ -333,6 +333,8 @@ function initialize() {
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
$("#native-app").prop("hidden", false);
|
||||
} else {
|
||||
defaultClientButton.hide();
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user