mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-23 14:44:23 +00:00
e768371a39
* Run elm-upgrade * Make compile * Update index.html * Upgrade tests * Finalize the upgrade * Optimize!
31 lines
1.0 KiB
HTML
31 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>Alertmanager</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
// If there is no trailing slash at the end of the path in the url,
|
|
// add one. This ensures assets like script.js are loaded properly
|
|
if (location.pathname.substr(-1) != '/') {
|
|
location.pathname = location.pathname + '/';
|
|
console.log('added slash');
|
|
}
|
|
</script>
|
|
<script src="script.js"></script>
|
|
<script>
|
|
var app = Elm.Main.init({
|
|
flags: {
|
|
production: true,
|
|
defaultCreator: localStorage.getItem('defaultCreator')
|
|
}
|
|
});
|
|
app.ports.persistDefaultCreator.subscribe(function(name) {
|
|
localStorage.setItem('defaultCreator', name);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|