1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-28 21:25:25 +00:00
code-server-2/packages/web/src/index.html
2019-03-01 09:45:59 -06:00

30 lines
598 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>code-server</title>
</head>
<body style="background: rgb(30, 30, 30);">
<script>
(() => {
const rawColorTheme = localStorage.getItem("colorThemeData");
if (!rawColorTheme) {
return;
}
const colorTheme = JSON.parse(rawColorTheme);
const colorMap = colorTheme.colorMap;
if (!colorMap) {
return;
}
const bg = colorMap["editor.background"];
if (!bg) {
return;
}
document.body.style.background = bg;
})();
</script>
</body>
</html>