start supporting fasten-cloud
This commit is contained in:
parent
855fc4c129
commit
f4ba6ca957
|
@ -23,8 +23,11 @@
|
|||
rel="stylesheet"
|
||||
/>
|
||||
<script>
|
||||
document.write(`<base href="${window.location.pathname.split('/web').slice(0, 1)[0]}/web/"/>`);
|
||||
</script>
|
||||
var baseHref = "/"
|
||||
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>
|
||||
<body>
|
||||
<app-root></app-root>
|
||||
|
|
Loading…
Reference in New Issue