Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

348 B
Raw Blame
export {};

declare global {
  interface Window {
    EXCALIDRAW_ASSET_PATH?: string;
  }
}

if (typeof window !== 'undefined' && window.EXCALIDRAW_ASSET_PATH === undefined) {
  window.EXCALIDRAW_ASSET_PATH =
    window.location.protocol === 'file:'
      ? new URL('excalidraw-assets/', window.location.href).href
      : '/excalidraw-assets/';
}