start supporting fasten-cloud

This commit is contained in:
Jason Kulatunga 2022-10-26 08:39:13 -07:00
parent 855fc4c129
commit f4ba6ca957
1 changed files with 5 additions and 2 deletions

View File

@ -23,8 +23,11 @@
rel="stylesheet" rel="stylesheet"
/> />
<script> <script>
document.write(`<base href="${window.location.pathname.split('/web').slice(0, 1)[0]}/web/"/>`); var baseHref = "/"
</script> if((window.location.hostname !== "sandbox.fastenhealth.com") && (window.location.hostname !== "app.fastenhealth.com")){
baseHref = window.location.pathname.split('/web').slice(0, 1)[0] + '/web/'
}
document.write(`<base href="${baseHref}"/>`); </script>
</head> </head>
<body> <body>
<app-root></app-root> <app-root></app-root>