added two apps, and better implementation

This commit is contained in:
David Meincke
2022-03-22 18:20:26 +01:00
parent bb44e0e92d
commit 33b3f2e5cc
47 changed files with 486 additions and 151 deletions
+16
View File
@@ -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/";
}
}