Skip to content

Commit

Permalink
Merge pull request #381 from stakwork/fix/front-end-check
Browse files Browse the repository at this point in the history
fix: parsing host url correctly to get graph status
  • Loading branch information
Evanfeenstra authored Nov 5, 2024
2 parents 619c936 + 4fd46bb commit 7e64f23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/super/superapp/src/Healthcheck.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
try {
let url = `https://boltwall.${host}/stats`;
// custom URLs
if (!url.includes("swarm")) {
if (!/swarm\d+/.test(host)) {
url = `https://${host}/api/stats`;
}
console.log("URL", url);
Expand Down
2 changes: 1 addition & 1 deletion src/bin/super/superapp/src/Remotes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
try {
let url = `https://boltwall.${host}/stats`;
// custom URLs
if (!url.includes("swarm")) {
if (!/swarm\d+/.test(host)) {
url = `https://${host}/api/stats`;
}
console.log("URL", url);
Expand Down

0 comments on commit 7e64f23

Please sign in to comment.