onboarding work, now waits to start daemon timers

This commit is contained in:
Kevin Froman 2019-11-30 02:42:49 -06:00
parent fb975dc52c
commit 1de668a9e5
9 changed files with 102 additions and 28 deletions

View file

@ -41,3 +41,16 @@ restartBtn.onclick = function(){
}
}
fetch('/config/get/onboarding.done', {
method: 'GET',
headers: {
"content-type": "application/json",
"token": webpass
}})
.then((resp) => resp.text()) // Transform the data into text
.then(function(data) {
if (data === 'false'){
window.location.href = window.location.pathname = "/onboarding/" + window.location.hash
}
})