since s3 bucket path includes /web, we dont need this conditional.

This commit is contained in:
Jason Kulatunga 2022-10-26 23:57:46 -07:00
parent 4e88f13a76
commit 3a5db5452a
1 changed files with 1 additions and 4 deletions

View File

@ -23,10 +23,7 @@
rel="stylesheet" rel="stylesheet"
/> />
<script> <script>
var baseHref = "/" var baseHref = window.location.pathname.split('/web').slice(0, 1)[0] + '/web/'
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> document.write(`<base href="${baseHref}"/>`); </script>
</head> </head>
<body> <body>