Use the final message from gravity to attest it was completed successfully (#2759)

This commit is contained in:
DL6ER
2023-10-16 22:58:13 +02:00
committed by GitHub
+1 -2
View File
@@ -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();
}