mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-15 07:38:32 +00:00
Merge pull request #742 from jcalado/offline-notification
"no network connection" alert
This commit is contained in:
commit
14c13b02de
12
main.js
12
main.js
@ -11982,4 +11982,14 @@ addEventToAll("#multiselect-trigger3", 'mousedown touchend focusin focusout', fu
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
|
||||
// Warns user about network going down
|
||||
|
||||
window.addEventListener("offline", function (e) {
|
||||
if (!session.cleanOutput) {
|
||||
alert("OBS.Ninja has no network connectivity and can't work properly.");
|
||||
} else {
|
||||
console.log(
|
||||
"OBS.Ninja has no network connectivity and can't work properly."
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user