tfrere's picture
tfrere HF Staff
fix(ui,publisher): kill theme/color flickers and translation prompts
08e4c7a
Raw
History Blame Contribute Delete
1.16 kB
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--
Opt out of browser in-page translation. The editor chrome is
English, and translating it mid-demo would rewrite slash-menu
labels, toolbar tooltips, and the document body - which would
corrupt the Yjs state. These metas silence the "Translate to X?"
prompt on non-English OS locales (Chrome reads the `google` tag,
other engines read `robots`).
-->
<meta name="google" content="notranslate" />
<meta name="robots" content="notranslate" />
<title>Research Article Template Editor</title>
<script>
(function() {
try {
var saved = localStorage.getItem('theme');
if (saved) {
document.documentElement.setAttribute('data-theme', saved);
} else {
localStorage.setItem('theme', 'dark');
}
} catch(e) {}
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>