mirror of
https://github.com/mue/mue.git
synced 2026-07-23 16:57:25 +02:00
stuff
This commit is contained in:
@@ -3,7 +3,7 @@ import React from 'react';
|
||||
import Fetch from 'unfetch';
|
||||
|
||||
export default class Background extends React.Component {
|
||||
async getAndSetBackground() {
|
||||
async setBackground() {
|
||||
try { // First we try and get an image from the API...
|
||||
let data = await Fetch('https://api.muetab.xyz/getImage?category=Outdoors');
|
||||
data = await data.json();
|
||||
@@ -19,7 +19,7 @@ export default class Background extends React.Component {
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.getAndSetBackground();
|
||||
this.setBackground();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user