mirror of
https://github.com/mue/mue.git
synced 2026-07-26 18:21:27 +02:00
Fix and make toast dark theme
This commit is contained in:
@@ -40,6 +40,7 @@ export default class App extends React.PureComponent {
|
||||
if (localStorage.getItem('showWelcome') === 'true') this.setState({ welcomeModal: true });
|
||||
const css = localStorage.getItem('customcss');
|
||||
if (css) document.head.insertAdjacentHTML('beforeend', '<style>' + css + '</style>');
|
||||
if (localStorage.getItem('darkTheme') === 'true') document.getElementsByClassName('Toastify')[0].classList.add('dark');
|
||||
}
|
||||
|
||||
closeWelcome() {
|
||||
|
||||
Reference in New Issue
Block a user