forked from rDrama/rDrama
fsd
parent
0e06aecdd8
commit
5e895c9b87
|
@ -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()
|
||||||
.onclick =
|
document.getElementsByClassName('tooltip')[0].onclick = function(event){
|
||||||
document.getElementsByClassName('tooltip')[0].addEventListener(
|
document.getElementById('mobile-prompt').hide()
|
||||||
'click',
|
|
||||||
function(event){
|
|
||||||
document.getElementById('mobile-prompt').hode()
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.withCredentials=true;
|
xhr.withCredentials=true;
|
||||||
xhr.open("POST", '/dismiss_mobile_tip', true);
|
xhr.open("POST", '/dismiss_mobile_tip', true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
}
|
}
|
||||||
)
|
|
||||||
} catch (error) {
|
|
||||||
console.error(error);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
</script>
|
||||||
</script> -->
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue