From b7e36a6f330ff6418b5648ce05b97b2ab84c05bd Mon Sep 17 00:00:00 2001 From: Johannes Date: Sun, 23 Oct 2016 23:10:49 +0200 Subject: [PATCH] Retry dns check --- installer/www/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/installer/www/index.html b/installer/www/index.html index 511e89f79..2698878d9 100644 --- a/installer/www/index.html +++ b/installer/www/index.html @@ -108,8 +108,11 @@ $(function () { type: 'POST', url: '/api/v1/dns', data: JSON.stringify(data), - success: function (data) { console.log('data: ' + data); }, - contentType: 'application/json' + contentType: 'application/json', + success: function (data, status) { console.log('data: ', status, data); }, + error: function () { + setTimeout(waitForDNS.bind(null, fqdn, ip), 5000); + }, }); }