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:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user