Fix critical mobile WebKit bug
This commit is contained in:
parent
f69a3fb599
commit
78b885b22e
|
@ -80,7 +80,9 @@ function connect() {
|
||||||
var incorrectDetail = 0;
|
var incorrectDetail = 0;
|
||||||
|
|
||||||
ws.onopen = () => {
|
ws.onopen = () => {
|
||||||
|
if (typeof Notification !== "undefined") {
|
||||||
Notification.requestPermission();
|
Notification.requestPermission();
|
||||||
|
}
|
||||||
console.log('Connected!');
|
console.log('Connected!');
|
||||||
document.getElementById('login').style.display = 'none';
|
document.getElementById('login').style.display = 'none';
|
||||||
document.getElementById('messaging').style.display = 'block';
|
document.getElementById('messaging').style.display = 'block';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user