forked from MarseyWorld/MarseyWorld
bbb
parent
16d9d59070
commit
517da1f876
|
@ -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…
Reference in New Issue