mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 07:34:36 +01:00
remove test download button
This commit is contained in:
@@ -27,19 +27,6 @@ interface IState {
|
||||
|
||||
const downloadHandler = new DownloadHandler()
|
||||
|
||||
async function download(url: string, filename: string, path: string) {
|
||||
const completePath = `${path}/${filename}`
|
||||
downloadHandler.addDownload(url, completePath)
|
||||
}
|
||||
|
||||
async function TESTDOWNLOAD() {
|
||||
download(
|
||||
'https://github.com/Koko-boya/Grasscutter_Resources/archive/refs/heads/main.zip',
|
||||
'resources.zip',
|
||||
'S:\\Cultivation'
|
||||
)
|
||||
}
|
||||
|
||||
class App extends React.Component<IProps, IState> {
|
||||
constructor(props: IProps) {
|
||||
super(props)
|
||||
@@ -90,8 +77,6 @@ class App extends React.Component<IProps, IState> {
|
||||
this.state.optionsOpen ? <Options closeFn={() => this.setState({ optionsOpen: !this.state.optionsOpen })}/> : null
|
||||
}
|
||||
|
||||
<button onClick={TESTDOWNLOAD}>download file test</button>
|
||||
|
||||
<ServerLaunchSection />
|
||||
|
||||
<div id="DownloadProgress"
|
||||
|
||||
Reference in New Issue
Block a user