forked from unisonweb/codebase-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunisonLocal.ejs
More file actions
34 lines (32 loc) · 957 Bytes
/
Copy pathunisonLocal.ejs
File metadata and controls
34 lines (32 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta
name="description"
content="A friendly programming language from the future."
/>
<title>Unison Local</title>
<% if (webpackConfig.mode === "production") {%>
<script type="text/javascript">
const pathSegments = location.pathname.split("/").filter((p) => p !== "");
if (pathSegments.length >= 2) {
const basePath = pathSegments.slice(0, 2).join("/");
const newBase = document.createElement("base");
newBase.setAttribute("href", "/" + basePath + "/");
document.getElementsByTagName("head")[0].appendChild(newBase);
}
</script>
<% } %>
<link
rel="icon"
type="image/svg+xml"
href="<%= require('./assets/favicon.svg') %>"
/>
</head>
<body></body>
</html>