Fix critical mobile WebKit bug

This commit is contained in:
Maxwell Jeffress 2024-11-24 14:13:05 +11:00
parent f69a3fb599
commit 78b885b22e

View File

@ -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';