Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

198 B
Raw Blame
export function isFileProtocolPage(
  loc: { protocol: string } | undefined = typeof window === 'undefined'
    ? undefined
    : window.location,
): boolean {
  return loc?.protocol === 'file:';
}