remove test download button

This commit is contained in:
SpikeHD
2022-05-14 00:47:30 -07:00
parent 530990b38f
commit 3c68b67aff
5 changed files with 82 additions and 26 deletions

View File

@@ -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"