try to fix firefox mobile notification

This commit is contained in:
creeper123123321 2021-03-06 22:49:45 -03:00
parent 363e1a72fb
commit 23d0ed2574
2 changed files with 3 additions and 1 deletions

View File

@ -400,6 +400,7 @@ $(() => {
if (Notification.permission == "default") {
Notification.requestPermission();
}
$("#notificate").on("click", e => Notification.requestPermission());
connect();
});

View File

@ -62,6 +62,7 @@
<p>WebSocket connection status: <span id="connection_status" class="text-white bg-dark">?</span></p>
<p>CORS Proxy status: <span id="cors_status" class="text-white bg-dark">?</span></p>
<hr>
<p><a href="javascript:" id="notificate">Enable notifications</a></p>
<p><span id="actions"></span></p>
<p><span id="listening"></span></p>
</div>