m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-13 07:33:48 -05:00

Fix refresh button when using custom base url (#89)

This commit is contained in:
Pavel
2025-04-07 07:11:44 +03:00
committed by GitHub
parent 5904c2d2e2
commit d3cb5af225

View File

@@ -14,7 +14,7 @@ export default function RefreshButton() {
request.open( request.open(
"GET", "GET",
process.env.NODE_ENV === "production" process.env.NODE_ENV === "production"
? "/api/v3/refresh" ? "./api/v3/refresh"
: `http://${window.location.hostname}:8000/api/v3/refresh`, : `http://${window.location.hostname}:8000/api/v3/refresh`,
); );
request.send(); request.send();