Use window location for API too.

This commit is contained in:
Matthew Stratford 2021-04-25 01:23:05 +01:00
parent 1a479905f6
commit 199cfc8843

View file

@ -53,7 +53,7 @@ export async function bapsicleApiRequest(
params: any params: any
): Promise<any> { ): Promise<any> {
const res = await apiRequest( const res = await apiRequest(
"http://webstudio-dev.ury.org.uk:13500" + endpoint, "http://" + window.location.hostname + ":13500" + endpoint,
method, method,
params params
); );