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