url-helpers.ts

16 lines | 388 B Blame History Raw Download
export function GetUrl(): string {
    return location.protocol + "//" + location.host + "/";
}

export function IsLocalhost(): boolean {
    return location.href.indexOf("://localhost") != -1;
}

export function GetOutputFrameUrl(): string {
    if (IsLocalhost()) {
        return "http://127.0.0.1:8021/";
    }
    else {
        return "https://outputframe.davidmeincke.dk/";
    }
}