diff --git a/main.js b/main.js index 3da0279..2fb7dff 100644 --- a/main.js +++ b/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." + ); + } +});