Remove webp setting and cleanup search widget

This commit is contained in:
David Ralph
2021-01-19 10:56:51 +00:00
parent c83b65f27b
commit 7785706737
10 changed files with 32 additions and 36 deletions

View File

@@ -15,13 +15,6 @@ export default class Update extends React.PureComponent {
}
async getUpdate() {
if (localStorage.getItem('offlineMode') === 'true') {
return this.setState({
title: this.props.language.offline.title,
html: this.props.language.offline.description
});
}
const data = await (await fetch(Constants.API_URL + '/getUpdate')).json();
if (data.statusCode === 500 || data.title === null) {
@@ -42,7 +35,14 @@ export default class Update extends React.PureComponent {
}
componentDidMount() {
this.getUpdate();
if (localStorage.getItem('offlineMode') === 'true') {
return this.setState({
title: this.props.language.offline.title,
html: this.props.language.offline.description
});
}
this.getUpdate();
}
render() {

View File

@@ -230,7 +230,6 @@ export default class BackgroundSettings extends React.PureComponent {
<Checkbox name='view' text={this.props.language.background.view} />
<Checkbox name='favouriteEnabled' text={this.props.language.background.favourite} />
<Checkbox name='refresh' text={this.props.language.background.refresh} />
<Checkbox name='webp' text={this.props.language.experimental.webp} betaFeature={true} />
</ul>
<ul>
<Dropdown