mirror of
https://github.com/mue/mue.git
synced 2026-07-28 11:11:08 +02:00
fix: background interval bug
- took far too long
This commit is contained in:
@@ -257,17 +257,19 @@ export default class Background extends PureComponent {
|
||||
this.state.firstTime === true) ||
|
||||
(localStorage.getItem('backgroundchange') === null && this.state.firstTime === true)
|
||||
) {
|
||||
localStorage.setItem('marketplaceNumber', randomNumber);
|
||||
this.setState({
|
||||
firstTime: false,
|
||||
url: randomPhoto.url.default,
|
||||
type: 'photo_pack',
|
||||
photoInfo: {
|
||||
hidden: false,
|
||||
credit: randomPhoto.photographer,
|
||||
location: randomPhoto.location || 'N/A',
|
||||
},
|
||||
});
|
||||
if (this.state.firstTime !== true) {
|
||||
localStorage.setItem('marketplaceNumber', randomNumber);
|
||||
this.setState({
|
||||
firstTime: false,
|
||||
url: randomPhoto.url.default,
|
||||
type: 'photo_pack',
|
||||
photoInfo: {
|
||||
hidden: false,
|
||||
credit: randomPhoto.photographer,
|
||||
location: randomPhoto.location || 'N/A',
|
||||
},
|
||||
});
|
||||
}
|
||||
} else {
|
||||
if (
|
||||
Number(
|
||||
|
||||
Reference in New Issue
Block a user