Spaces:
Sleeping
Sleeping
Update static/API_Refresh_workerJS.js
Browse files
static/API_Refresh_workerJS.js
CHANGED
|
@@ -11,7 +11,7 @@ function getRefreshAPIAjax(){
|
|
| 11 |
|
| 12 |
ajax("/refreshAPI")//, sectionData)
|
| 13 |
.then(function(data) {
|
| 14 |
-
self.postMessage(
|
| 15 |
})
|
| 16 |
}
|
| 17 |
|
|
|
|
| 11 |
|
| 12 |
ajax("/refreshAPI")//, sectionData)
|
| 13 |
.then(function(data) {
|
| 14 |
+
self.postMessage(data); // Code depending on result
|
| 15 |
})
|
| 16 |
}
|
| 17 |
|