Will be released eventually (#75)
This commit is contained in:
commit
33327bf680
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ function openURL (url, newTab = true) {
|
|||
if (newTab) {
|
||||
window.open(url, '_blank', 'noopener,noreferrer')
|
||||
} else {
|
||||
window.open(url)
|
||||
window.open(url, '_self')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export const installTexturePack = async (file: File | ArrayBuffer, name = file['
|
|||
const allFilesArr = Object.entries(zipFile.files)
|
||||
let done = 0
|
||||
const upStatus = () => {
|
||||
setLoadingScreenStatus(`${status} ${Math.round(++done / allFilesArr.length * 100)}%`)
|
||||
setLoadingScreenStatus(`${status} ${Math.round(done / allFilesArr.length * 100)}%`)
|
||||
}
|
||||
await Promise.all(allFilesArr.map(async ([path, file]) => {
|
||||
const writePath = join(texturePackBasePath, path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue