diff --git a/webadmin/src/js/update.js b/webadmin/src/js/update.js index 174ef96ad..2167218f1 100644 --- a/webadmin/src/js/update.js +++ b/webadmin/src/js/update.js @@ -43,8 +43,8 @@ app.controller('Controller', ['$scope', '$http', '$interval', function ($scope, // check if the new domain is available via the appstore (cannot use cloudron // directly as we might hit NXDOMAIN) - $http.get(data.apiServerOrigin + '/api/v1/boxes/' + data.migrate.info.domain + '/status').success(function(data, status) { - if (status === 200 && data.status === 'ready') return window.location = 'https://my.' + data.migrate.info.domain; + $http.get(data.apiServerOrigin + '/api/v1/boxes/' + data.migrate.info.domain + '/status').success(function(data2, status) { + if (status === 200 && data2.status === 'ready') return window.location = 'https://my.' + data.migrate.info.domain; }); } }