Hide "Updating..." box if gravity.sh quits

This commit is contained in:
DL6ER
2016-11-18 15:58:38 +01:00
parent 2b1c9b9f75
commit 73ae5b69be
+1 -1
View File
@@ -11,7 +11,6 @@ function eventsourcetest() {
if(e.data.indexOf("Pi-hole blocking is Enabled") !== -1)
{
alSuccess.show();
alInfo.delay(1000).fadeOut(2000, function() { alInfo.hide(); });
}
ta.innerHTML += e.data;
@@ -20,6 +19,7 @@ function eventsourcetest() {
// Will be called when script has finished
source.addEventListener("error", function(e) {
alInfo.delay(1000).fadeOut(2000, function() { alInfo.hide(); });
source.close();
}, false);
}