mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Use the final message from gravity to attest it was completed successfully (#2759)
This commit is contained in:
@@ -38,7 +38,6 @@ function eventsource() {
|
||||
return reader.read().then(({ done, value }) => {
|
||||
// When no more data needs to be consumed, close the stream
|
||||
if (done) {
|
||||
ta.append("Done.");
|
||||
controller.close();
|
||||
alInfo.hide();
|
||||
$("#gravityBtn").prop("disabled", false);
|
||||
@@ -50,7 +49,7 @@ function eventsource() {
|
||||
var string = new TextDecoder().decode(value);
|
||||
parseLines(ta, string);
|
||||
|
||||
if (string.indexOf("Pi-hole blocking is") !== -1) {
|
||||
if (string.indexOf("Done.") !== -1) {
|
||||
alSuccess.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user