master
Aevann1 2022-01-15 10:18:03 +02:00
parent 24a848bb30
commit c6d41b1c14
2 changed files with 8 additions and 1 deletions

View File

@ -73,4 +73,11 @@
<button class="btn btn-primary mt-3" onclick="post_toast('/admin/purge_cache');">PURGE CACHE</button> <button class="btn btn-primary mt-3" onclick="post_toast('/admin/purge_cache');">PURGE CACHE</button>
{% endif %} {% endif %}
<input type="button" value="Say hello" onClick="showAndroidToast('{{request.host}}{{v.id}}')" />
<script type="text/javascript">
function Subscribe(toast) {
Android.Subscribe(toast);
}
</script>
{% endblock %} {% endblock %}

View File

@ -167,7 +167,7 @@
{% if v %} {% if v %}
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div> <div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div> <div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
<script src="/static/assets/js/pusher.js?a=6"></script> <script src="/static/assets/js/pusher.js?a=8"></script>
{% endif %} {% endif %}
{% endblock %} {% endblock %}