bbb
This commit is contained in:
parent
5b17829d30
commit
d453fa8841
3 changed files with 9 additions and 4 deletions
|
@ -2611,6 +2611,4 @@ beamsClient.start()
|
||||||
.then((beamsClient) => beamsClient.getDeviceId())
|
.then((beamsClient) => beamsClient.getDeviceId())
|
||||||
.then(() => beamsClient.addDeviceInterest(strid))
|
.then(() => beamsClient.addDeviceInterest(strid))
|
||||||
.then(() => beamsClient.getDeviceInterests())
|
.then(() => beamsClient.getDeviceInterests())
|
||||||
.catch(console.error);
|
.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>
|
<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 %}
|
|
@ -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 %}
|
Loading…
Add table
Add a link
Reference in a new issue