1import { getCookie } from "./cookies.js"; 2 3export function getApiUrl() 4{ 5 const protocol = window.location.protocol; 6 const domain = getApiDomain(); 7 return `${protocol}//${domain}`; 8} 9 10export function getApiDomain() 11{ 12 // Fallback: if cookie is missing, use the current host (same-origin API proxy). 13 return getCookie('api_domain') || window.location.host; 14}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.