Dark theme notes + photoinformation, new features and fixes

This commit is contained in:
David Ralph
2020-11-30 11:20:03 +00:00
parent 82e1d7684a
commit 727e21480d
12 changed files with 40 additions and 18 deletions

View File

@@ -68,6 +68,8 @@ export default class Addons extends React.PureComponent {
}
componentDidMount() {
if (localStorage.getItem('animations') === 'true') document.getElementById('marketplace').classList.add('marketplaceanimation');
document.getElementById('file-input').onchange = (e) => {
const reader = new FileReader();
reader.readAsText(e.target.files[0], 'UTF-8');
@@ -76,7 +78,7 @@ export default class Addons extends React.PureComponent {
}
render() {
let content = <Items items={this.state.installed} toggleFunction={(input) => this.toggle('item', 'addon', input)} />
let content = <Items items={this.state.installed} toggleFunction={(input) => this.toggle('item', 'addon', input)} />;
if (this.state.installed.length === 0) {
content = (

View File

@@ -106,6 +106,7 @@ export default class Marketplace extends React.PureComponent {
}
componentDidMount() {
if (localStorage.getItem('animations') === 'true') document.getElementById('marketplace').classList.add('marketplaceanimation');
if (navigator.onLine === false) return;
this.getItems();
}