Skip to content

Commit b13761c

Browse files
committed
Fix countdown
1 parent fe7f912 commit b13761c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

script.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ function LoadData(id) {
99
if (this.readyState === 4 && this.status === 200) {
1010
let data = JSON.parse(this.responseText);
1111
let type = data.raw.Type;
12+
console.log("refresh:");
1213
// insert data into html
1314
let serverid = document.getElementById("server_"+id);
1415
if (data.Status === 1) {
@@ -138,6 +139,7 @@ function refresh() {
138139
callLoadData();
139140
} else {
140141
console.log('refresh paused');
142+
clearInterval(downloadTimer);
141143
countdown(30);
142144
}
143145
}

0 commit comments

Comments
 (0)