remotes/1693045480750635534/spooky-22
Aevann1 2021-09-28 21:53:02 +02:00
parent 79e6356b29
commit b738aebe18
1 changed files with 24 additions and 0 deletions

View File

@ -145,4 +145,28 @@
.catch(console.error);
</script>
{% endif %}
<script>
if (("standalone" in window.navigator) &&
window.navigator.standalone){
} else {
if (window.innerWidth <= 737){
try {
document.getElementById('mobile-prompt').tooltip('show')
document.getElementsByClassName('tooltip')[0].addEventListener(
'click',
function(event){
document.getElementById('mobile-prompt').tooltip('hide')
var xhr = new XMLHttpRequest();
xhr.withCredentials=true;
xhr.open("POST", '/dismiss_mobile_tip', true);
xhr.send();
}
)
} catch (error) {
console.error(error);
}
}
}
</script>
{% endblock %}