Files
openobserve/web/index.html
T
Sai Nikhil a0133e6668 fix: favicon logo updated , missing language keys added (#9178)
1. This PR updates the favicon and also dynamically based on chrome
theme it will change to dark or light icon
2. some newly added files missed the language keys
2025-11-19 13:01:13 +05:30

50 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" id="favicon" href="/openobserve_favicon_light.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenObserve</title>
<base href="/" />
<script>
// Detect and set favicon based on system theme preference
(function() {
function setFavicon() {
const favicon = document.getElementById('favicon');
const isDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
if (favicon) {
favicon.href = isDarkMode ? '/openobserve_favicon_dark.ico' : '/openobserve_favicon_light.ico';
}
}
// Set favicon on page load
setFavicon();
// Listen for theme changes
if (window.matchMedia) {
const darkModeQuery = window.matchMedia('(prefers-color-scheme: dark)');
// Modern browsers
if (darkModeQuery.addEventListener) {
darkModeQuery.addEventListener('change', setFavicon);
}
// Fallback for older browsers
else if (darkModeQuery.addListener) {
darkModeQuery.addListener(setFavicon);
}
}
})();
</script>
</head>
<body>
<div id="app"></div>
<script>
window.global = window;
var exports = {};
</script>
<script type="module" src="/src/main.ts"></script>
</body>
</html>