Browse Source

fix bug

beelzebub 0.1.0
Gisle Aune 1 year ago
parent
commit
054e881f76
  1. 2
      frontend/src/lib/client/lucifer.ts

2
frontend/src/lib/client/lucifer.ts

@ -3,7 +3,7 @@ import type CommandInput from "$lib/models/command";
import type UIState from "$lib/models/uistate";
export default async function fetchLucifer<T>(path: string, init?: RequestInit): Promise<T> {
const url = import.meta.env.VITE_LUCIFER4_BACKEND_URL + "/" + path;
const url = (import.meta.env.VITE_LUCIFER4_BACKEND_URL||"") + "/" + path;
const res = await fetch(url, init);
if (res.status !== 200) {

Loading…
Cancel
Save