mirror of
https://github.com/unraid/api.git
synced 2026-01-02 14:40:01 -06:00
fix(plg): remove redirect on key install
This commit is contained in:
@@ -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);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user