[App] use current window's hostname for api calls

This commit is contained in:
2020-03-19 13:24:05 +03:00
parent 6b2d4155d4
commit f5aa88fcf9
8 changed files with 2 additions and 1423 deletions

View File

@@ -1,4 +1,4 @@
const root = "http://eggbot.local";
const root = window.location.protocol + "//" + window.location.hostname;
export async function fetchJSON(
path: string,