Skip to content

Commit

Permalink
handle very-fast updates correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
delgod committed Feb 14, 2017
1 parent 1807b6c commit 2c5f767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion landing-page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ <h4 class="modal-title">Update</h4>
var runUpdate = $.post("/configurator/v1/updates", null, null, "json");

runUpdate.done(function(data, status, xhr) {
if (data.title === "in-progress") {
if (data.title === "in-progress" || data.title === "finished") {
updateLocation = xhr.getResponseHeader('Location');
window.setTimeout(update, 1);
} else {
Expand Down

0 comments on commit 2c5f767

Please sign in to comment.