mirror of
https://github.com/mue/mue.git
synced 2026-07-21 16:04:22 +02:00
Dark theme notes + photoinformation, new features and fixes
This commit is contained in:
@@ -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 = (
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user