mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-10 22:23: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(
|
||||
"GET",
|
||||
process.env.NODE_ENV === "production"
|
||||
? "/api/v3/refresh"
|
||||
? "./api/v3/refresh"
|
||||
: `http://${window.location.hostname}:8000/api/v3/refresh`,
|
||||
);
|
||||
request.send();
|
||||
|
||||
Reference in New Issue
Block a user