remotes/1693045480750635534/spooky-22
Aevann1 2021-09-28 21:59:33 +02:00
parent 0e06aecdd8
commit 5e895c9b87
1 changed files with 10 additions and 18 deletions

View File

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