fleet/frontend/templates/react.ejs

40 lines
1.1 KiB
Text
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=768" id="viewport-meta-tag" />
<meta property="csp-nonce" content="{{.CSPNonce}}" />
<script nonce="{{.CSPNonce}}">
// If URL contains /device/, set mobile-friendly viewport
if (window.location.pathname.includes("/device/")) {
document
.getElementById("viewport-meta-tag")
.setAttribute("content", "width=device-width, initial-scale=1.0");
}
</script>
<link
rel="stylesheet"
type="text/css"
href="{{.URLPrefix}}<%= htmlWebpackPlugin.files.css[0] %>"
/>
<link rel="shortcut icon" href="{{.URLPrefix}}/assets/favicon.ico" />
2024-01-12 14:27:56 +00:00
<title>Fleet</title>
<script type="text/javascript" nonce="{{.CSPNonce}}}">
var urlPrefix = "{{.URLPrefix}}";
</script>
</head>
<body>
<div id="app"></div>
<script
async
defer
nonce="{{.CSPNonce}}"
src="{{.URLPrefix}}<%= htmlWebpackPlugin.files.js[0] %>"
></script>
</body>
</html>