some tests

This commit is contained in:
2023-06-01 22:02:03 +02:00
parent e3515901e4
commit 65a6312b8e
9 changed files with 153 additions and 40 deletions
+4 -3
View File
@@ -6,12 +6,13 @@ export function IsLocalhost(): boolean {
return location.href.indexOf("://localhost") != -1;
}
export function GetOutputFrameUrl(): string {
export function GetOutputFrameUrl(path: string = ""): string {
var v = "?v=" + (+new Date());
if (IsLocalhost()) {
return "http://localhost:8021/";
return "http://127.0.0.1:8021/" + path + v;
}
else {
return "https://outputframe.davidmeincke.dk/";
return "https://outputframe.davidmeincke.dk/" + path + v;
//return "https://codeeditoroutput.z16.web.core.windows.net/";
}
}