dont show annoying popup to PWA users

pull/2/head
Aevann1 2022-11-21 20:45:27 +02:00
parent 9668c6729f
commit 29452e2e6e
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@
</div>
<script>
if (!("standalone" in window.navigator) && !(window.navigator.standalone)) {
if (!window.matchMedia('(display-mode: minimal-ui)')['matches']) {
if (window.innerWidth <= 737) {
document.addEventListener('DOMContentLoaded', function() {
const tt = bootstrap.Tooltip.getOrCreateInstance(document.getElementById('mobile-prompt'))