diff --git a/Open Media Library/Resources/js/install.js b/Open Media Library/Resources/js/install.js index 2bc80e2..257ab47 100644 --- a/Open Media Library/Resources/js/install.js +++ b/Open Media Library/Resources/js/install.js @@ -11,7 +11,7 @@ function load() { ws.onclose = function(event) { setTimeout(load, 500); }; -}; +} function update() { var xhr = new XMLHttpRequest(); @@ -25,20 +25,19 @@ function update() { document.getElementById('status').innerHTML = status; setTimeout(update, 1000); } else { - document.getElementById('status').innerHTML = "done"; + document.getElementById('status').innerHTML = 'done'; setTimeout(load, 500); } }; xhr.onerror = function() { var status = document.getElementById('status').innerHTML; if (['done', 'setup'].indexOf(status) == -1) { - document.getElementById('status').innerHTML = "error"; + document.getElementById('status').innerHTML = 'error'; } load(); } xhr.open('get', '/status'); xhr.send(); - } update();