fix(plg): use window.location.href instead of just location

This commit is contained in:
Eric Schultz
2020-04-17 02:29:20 -05:00
parent 32b20ca08d
commit 86caef77b2

View File

@@ -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);
});