mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
[App] use current window's hostname for api calls
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const root = "http://eggbot.local";
|
||||
const root = window.location.protocol + "//" + window.location.hostname;
|
||||
|
||||
export async function fetchJSON(
|
||||
path: string,
|
||||
|
||||
Reference in New Issue
Block a user