forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-26 11:37:40 +02:00
parent 84db70d984
commit df8facab07
1 changed files with 0 additions and 24 deletions

View File

@ -212,30 +212,6 @@
{% endif %}
<script>
//mobile prompt
if (!("standalone" in window.navigator && window.navigator.standalone)){
if (window.innerWidth <= 737){
try {
document.getElementById('mobile-prompt').show()
document.getElementsByClassName('tooltip')[0].addEventListener(
'click',
function(event){
document.getElementById('mobile-prompt').hide()
var xhr = new XMLHttpRequest();
xhr.withCredentials=true;
xhr.open("POST", '/dismiss_mobile_tip', true);
xhr.send();
}
)
} catch (error) {
console.error(error);
}
}
}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">