mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +02:00
Update
This commit is contained in:
parent
f369e137e1
commit
cbc383f875
1 changed files with 7 additions and 0 deletions
|
@ -165,6 +165,13 @@ function socketConnect() {
|
||||||
onSocketClose();
|
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) {
|
conn.onerror = function (err) {
|
||||||
socketConnectRequested = 0;
|
socketConnectRequested = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue