bbb
This commit is contained in:
parent
ec7b7d30cd
commit
3ff36780e9
2 changed files with 7 additions and 3 deletions
|
@ -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="Subscribe('{{request.host}}{{v.id}}')" />
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
function Subscribe(toast) {
|
||||||
|
Android.Subscribe(toast);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -167,9 +167,6 @@
|
||||||
{% 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>
|
|
||||||
Android.Subscribe('{{request.host}}{{v.id}}');
|
|
||||||
</script>
|
|
||||||
<script src="/static/assets/js/pusher.js?a=9"></script>
|
<script src="/static/assets/js/pusher.js?a=9"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue