frigate/web/src/api/baseUrl.ts

8 lines
170 B
TypeScript
Raw Normal View History

declare global {
interface Window {
baseUrl?: string;
}
}
export const baseUrl = `${window.location.protocol}//${window.location.host}${window.baseUrl || "/"}`;