Skip to content

Commit

Permalink
fix: frontend url issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Nov 5, 2024
1 parent 619c936 commit 4fd46bb
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 4fd46bb

Please sign in to comment.