mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Hide "Updating..." box if gravity.sh quits
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user