move image files to local bg folder

This commit is contained in:
SpikeHD
2022-06-01 18:08:50 -07:00
parent da6d05c7d0
commit 53f42be967
4 changed files with 45 additions and 12 deletions

View File

@@ -88,11 +88,11 @@ class App extends React.Component<IProps, IState> {
bgLoc && this.setState({
bgFile: bgLoc
})
}, this.forceUpdate)
}
} else this.setState({
bgFile: custom_bg
})
}, this.forceUpdate)
if (!cert_generated) {
// Generate the certificate
@@ -109,15 +109,13 @@ class App extends React.Component<IProps, IState> {
isDownloading: downloadHandler.getDownloads().filter(d => d.status !== 'finished')?.length > 0
})
}, 1000)
console.log('mounting app component with background: ' + this.state.bgFile)
}
render() {
return (
<div className="App" style={
this.state.bgFile ? {
background: `url(${this.state.bgFile}) fixed`,
background: `url("${this.state.bgFile}") fixed`,
} : {}
}>
<TopBar