From a4d00e2480932dfd40cb0c4eae537318d9fbb184 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 1 May 2020 23:45:44 -0500 Subject: [PATCH] fix(plg): remove redirect on key install --- dynamix.unraid.net.plg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dynamix.unraid.net.plg b/dynamix.unraid.net.plg index 927a6d3d9..90ab459bb 100644 --- a/dynamix.unraid.net.plg +++ b/dynamix.unraid.net.plg @@ -853,7 +853,6 @@ function handleMessage(e) { hideRegWizard(function (){ $.get('/webGui/include/InstallKey.php', {url: data.license}, function() { console.log('New license key installed: ' + data.license); - setTimeout(function(){ location = '/Main'; }, 1000); }).fail(function() { console.error('Failed to license new key: ' + data.license); }); @@ -940,8 +939,8 @@ $arr['flashproduct'] = $var['flashProduct']; $arr['flashvendor'] = $var['flashVendor']; $arr['servername'] = $var['NAME']; $arr['serverip'] = $_SERVER['SERVER_ADDR']; -//$arr['internalport'] = $_SERVER['SERVER_PORT']; -//$arr['protocol'] = $_SERVER['REQUEST_SCHEME']; +$arr['internalport'] = $_SERVER['SERVER_PORT']; +$arr['protocol'] = $_SERVER['REQUEST_SCHEME']; echo json_encode($arr); ?>