Nightly: Containerbreite auf mindestens 90% des Monitors erweitert (data-build=nightly)
This commit is contained in:
parent
2b2349491d
commit
5694a9ec73
2 changed files with 11 additions and 0 deletions
|
|
@ -89,6 +89,11 @@ export default function App() {
|
|||
// Theme anwenden/persistieren
|
||||
useEffect(() => {
|
||||
document.body.setAttribute('data-theme', theme);
|
||||
if (import.meta.env.VITE_BUILD_CHANNEL === 'nightly') {
|
||||
document.body.setAttribute('data-build', 'nightly');
|
||||
} else {
|
||||
document.body.removeAttribute('data-build');
|
||||
}
|
||||
localStorage.setItem('theme', theme);
|
||||
}, [theme]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue