improvement(plg): add condtl timed redirect after REG_WIZARD postMessage

This commit is contained in:
Zack Spear
2020-07-01 15:32:28 -07:00
parent 6b53961abe
commit b77c4c21fe

View File

@@ -849,6 +849,9 @@ function handleMessage(e) {
}
$.post('/update.php', postargs, function() {
console.log('dynamix/dynamix.cfg: Updated apikey under [remote] section');
if (!data.license) {
setTimeout(function(){ window.location.href = '/Main'; }, 500);
}
}).fail(function() {
console.error('Failed to update apikey under [remote] section');
});