Detect web-app-capable
This commit is contained in:
parent
79db485a91
commit
b3b7d126be
|
@ -38,6 +38,9 @@ button {
|
|||
outline: none;
|
||||
padding: 0;
|
||||
}
|
||||
.web-app-mode {
|
||||
padding-top: 20px;
|
||||
}
|
||||
.tooltip-inner {
|
||||
background: #fff;
|
||||
border-radius: 2px;
|
||||
|
|
|
@ -31,6 +31,10 @@ $(function() {
|
|||
var sidebar = $("#sidebar, #footer");
|
||||
var chat = $("#chat");
|
||||
|
||||
if (navigator.standalone) {
|
||||
$("html").addClass("web-app-mode");
|
||||
}
|
||||
|
||||
try {
|
||||
var pop = new Audio();
|
||||
pop.src = "/audio/pop.ogg";
|
||||
|
|
Loading…
Reference in New Issue