mirror of
https://github.com/unraid/api.git
synced 2026-01-03 06:59:50 -06:00
fix(plg): use window.location.href instead of just location
This commit is contained in:
@@ -866,7 +866,7 @@ 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);
|
||||
setTimeout(function(){ window.location.href = '/Main'; }, 1000);
|
||||
}).fail(function() {
|
||||
console.error('Failed to license new key: ' + data.license);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user