remotes/1693045480750635534/spooky-22
Aevann1 2022-01-15 12:19:43 +02:00
parent 16d9d59070
commit 517da1f876
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -167,9 +167,6 @@
{% if v %}
<div class="d-none" id="strid">{{request.host}}{{v.id}}</div>
<div class="d-none" id="pusherid">{{PUSHER_ID}}</div>
<script>
Android.Subscribe('{{request.host}}{{v.id}}');
</script>
<script src="/static/assets/js/pusher.js?a=9"></script>
{% endif %}