mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 21:58:35 +00:00
respect cleanOutput
if cleanOutput is set don't alert. Log to console instead.
This commit is contained in:
parent
ea1895c129
commit
5bb7bbdd5c
11
main.js
11
main.js
@ -11983,4 +11983,13 @@ addEventToAll("#multiselect-trigger3", 'mousedown touchend focusin focusout', fu
|
||||
});
|
||||
|
||||
// Warns user about network going down
|
||||
window.addEventListener('offline', function(e) { alert("OBS.Ninja has no network connectivity and can't work properly.") });
|
||||
|
||||
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