changed the migrate and dxcc urls in the installer to point to the same host that the user navigated to

This commit is contained in:
Patrick Burns
2025-01-02 19:01:58 -06:00
parent 3fa0cb9ef6
commit 2143540d45

View File

@@ -268,7 +268,7 @@
return new Promise((resolve, reject) => {
$.ajax({
url: "<?php echo $_POST['websiteurl'] ?? $websiteurl; ?>" + "index.php/migrate",
url: `${window.location.origin}/index.php/migrate`,
dataType: 'json',
success: async function(response) {
if (response.status == 'success') {
@@ -297,7 +297,7 @@
return new Promise((resolve, reject) => {
$.ajax({
url: "<?php echo $_POST['websiteurl'] ?? $websiteurl; ?>" + "index.php/update/dxcc",
url: url: `${window.location.origin}/index.php/update/dxcc`,
success: async function(response) {
if (response == 'success') {
running(field, false);