added two apps, and better implementation
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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/";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user