mirror of
https://github.com/mue/mue.git
synced 2026-07-21 16:04:22 +02:00
refactor: clean translation system and more widget stuff
This commit is contained in:
@@ -244,13 +244,13 @@ export default class Background extends PureComponent {
|
||||
return setFavourited(photofavourited);
|
||||
}
|
||||
|
||||
const photoPack = [];
|
||||
const installed = JSON.parse(localStorage.getItem('installed'));
|
||||
installed.forEach(item => {
|
||||
if (item.type === 'photos') {
|
||||
photoPack.push(...item.photos)
|
||||
}
|
||||
});
|
||||
const photoPack = [];
|
||||
const installed = JSON.parse(localStorage.getItem('installed'));
|
||||
installed.forEach((item) => {
|
||||
if (item.type === 'photos') {
|
||||
photoPack.push(...item.photos);
|
||||
}
|
||||
});
|
||||
if (photoPack) {
|
||||
const randomPhoto = photoPack[Math.floor(Math.random() * photoPack.length)];
|
||||
return this.setState({
|
||||
|
||||
Reference in New Issue
Block a user