fix: duckduckgo proxy no longer breaks offline mode

This commit is contained in:
David Ralph
2021-05-16 21:05:56 +01:00
parent 08bfa2772d
commit 2fd2e06bac
2 changed files with 12 additions and 12 deletions

View File

@@ -68,7 +68,7 @@ export default class Background extends React.PureComponent {
const backgroundImage = document.getElementById('backgroundImage');
if (this.state.url !== '') {
const url = (localStorage.getItem('ddgProxy') === 'true') ? window.constants.DDG_PROXY + this.state.url : this.state.url;
const url = (localStorage.getItem('ddgProxy') === 'true' && this.state.photoInfo.offline !== true) ? window.constants.DDG_PROXY + this.state.url : this.state.url;
const photoInformation = document.querySelector('.photoInformation');
// just set the background