1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
This commit is contained in:
Daniel Neto 2024-10-07 11:01:34 -03:00
parent f369e137e1
commit cbc383f875

View file

@ -165,6 +165,13 @@ function socketConnect() {
onSocketClose();
};
function checkNetworkConnection() {
if (!navigator.onLine) {
console.error('It seems you are offline. Check your internet connection.');
} else {
console.log('Network appears to be online.');
}
}
conn.onerror = function (err) {
socketConnectRequested = 0;