mirror of
https://github.com/mue/mue.git
synced 2026-07-15 13:03:55 +02:00
feat: welcome modal language hot reload
This commit is contained in:
@@ -283,7 +283,16 @@ export default class Background extends React.PureComponent {
|
||||
this.getBackground();
|
||||
};
|
||||
|
||||
const welcomeTab = localStorage.getItem('welcomeTab');
|
||||
if (welcomeTab) {
|
||||
return this.setState(JSON.parse(localStorage.getItem('welcomeImage')));
|
||||
}
|
||||
|
||||
EventBus.on('refresh', (data) => {
|
||||
if (data === 'welcomeLanguage') {
|
||||
localStorage.setItem('welcomeImage', JSON.stringify(this.state));
|
||||
}
|
||||
|
||||
if (data === 'background') {
|
||||
if (localStorage.getItem('background') === 'false') {
|
||||
// user is using custom colour or image
|
||||
|
||||
Reference in New Issue
Block a user