mirror of
https://github.com/mue/mue.git
synced 2026-07-22 16:27:32 +02:00
fix: unsplash links etc
This commit is contained in:
@@ -15,7 +15,10 @@ export default class Background extends React.PureComponent {
|
||||
url: '',
|
||||
currentAPI: '',
|
||||
photoInfo: {
|
||||
hidden: false
|
||||
hidden: false,
|
||||
offline: false,
|
||||
photographerURL: '',
|
||||
photoURL: ''
|
||||
}
|
||||
};
|
||||
this.language = window.language.widgets.background;
|
||||
@@ -55,6 +58,7 @@ export default class Background extends React.PureComponent {
|
||||
this.setState({
|
||||
url: `./offline-images/${randomImage}.webp`,
|
||||
photoInfo: {
|
||||
offline: true,
|
||||
credit: photographer
|
||||
}
|
||||
});
|
||||
@@ -158,7 +162,9 @@ export default class Background extends React.PureComponent {
|
||||
location: (data.location.replace(/[null]+/g, '') !== ' ') ? data.location : 'N/A',
|
||||
camera: data.camera,
|
||||
resolution: data.resolution,
|
||||
url: data.file
|
||||
url: data.file,
|
||||
photographerURL: (backgroundAPI === 'unsplash') ? data.photographer_page : '',
|
||||
photoURL: (backgroundAPI === 'unsplash') ? data.photo_page : ''
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user