mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
move image files to local bg folder
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user