From b77c4c21fe0802ecbaec456200955ba7748f12d8 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Wed, 1 Jul 2020 15:32:28 -0700 Subject: [PATCH] improvement(plg): add condtl timed redirect after REG_WIZARD postMessage --- dynamix.unraid.net.plg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dynamix.unraid.net.plg b/dynamix.unraid.net.plg index 3b352418d..4f7f9bdbc 100644 --- a/dynamix.unraid.net.plg +++ b/dynamix.unraid.net.plg @@ -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'); });