mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-04 09:30:00 +01:00
check document.hidden
This commit is contained in:
parent
69cab63ce6
commit
c0509744cd
@ -291,7 +291,7 @@ function confirmJoin(hash) {
|
||||
socket.send(JSON.stringify({action: "session_hash_response", session_hash: hash}));
|
||||
}
|
||||
function authNotification(msg, yes, no) {
|
||||
if (!pageBlur || Notification.permission != "granted") {
|
||||
if ((!pageBlur && !document.hidden) || Notification.permission != "granted") {
|
||||
if (confirm(msg)) yes(); else no();
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user