Prevent browser translation from mutating the app shell

This commit is contained in:
paulbettner
2026-03-29 18:05:49 -05:00
parent 7aa6744f20
commit 66c26191d8
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -5,6 +5,10 @@ import { INLINE_LOGO_JPEG } from '@/assets/logoInline';
import App from './App.tsx';
document.title = 'CLI Proxy API Management Center';
document.documentElement.setAttribute('translate', 'no');
document.documentElement.classList.add('notranslate');
document.body.classList.add('notranslate');
document.body.setAttribute('translate', 'no');
const faviconEl = document.querySelector<HTMLLinkElement>('link[rel="icon"]');
if (faviconEl) {