bbb
This commit is contained in:
parent
5b17829d30
commit
d453fa8841
3 changed files with 9 additions and 4 deletions
|
@ -2612,5 +2612,3 @@ beamsClient.start()
|
|||
.then(() => beamsClient.addDeviceInterest(strid))
|
||||
.then(() => beamsClient.getDeviceInterests())
|
||||
.catch(console.error);
|
||||
|
||||
Android.Subscribe(strid);
|
|
@ -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="showAndroidToast('{{request.host}}{{v.id}}')" />
|
||||
|
||||
<script type="text/javascript">
|
||||
function Subscribe(toast) {
|
||||
Android.Subscribe(toast);
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
|
@ -167,7 +167,7 @@
|
|||
{% if v %}
|
||||
<div class="d-none" id="strid">{{request.host}}{{v.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 %}
|
||||
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue