Loading client/src/utils/utils.ts +15 −0 Original line number Diff line number Diff line Loading @@ -442,6 +442,21 @@ export function hasKeys(object: unknown, keys: string[]) { } } /** * Get the full URL path of the app * * @param path Path to append to the URL path * @returns Full URL path of the app */ export function getFullAppUrl(path: string = ""): string { const protocol = window.location.protocol; const hostname = window.location.hostname; const port = window.location.port ? `:${window.location.port}` : ""; const appRoot = getAppRoot(); return `${protocol}//${hostname}${port}${appRoot}${path}`; } export default { cssLoadFile, get, Loading Loading
client/src/utils/utils.ts +15 −0 Original line number Diff line number Diff line Loading @@ -442,6 +442,21 @@ export function hasKeys(object: unknown, keys: string[]) { } } /** * Get the full URL path of the app * * @param path Path to append to the URL path * @returns Full URL path of the app */ export function getFullAppUrl(path: string = ""): string { const protocol = window.location.protocol; const hostname = window.location.hostname; const port = window.location.port ? `:${window.location.port}` : ""; const appRoot = getAppRoot(); return `${protocol}//${hostname}${port}${appRoot}${path}`; } export default { cssLoadFile, get, Loading