🚑 Fix download file name

This commit is contained in:
C-3PO 2018-07-04 22:10:59 +02:00
parent 34a4372183
commit 6ac41fcc48
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -14,7 +14,7 @@ export default function saveResponse(
//Remember file size
const headerLength = Number(response.headers['content-length']);
const tempFileName = `'/tmp/swtor-patcher-download-${Math.random()}.tmp`;
const tempFileName = `/tmp/swtor-patcher-download-${Math.random()}.tmp`;
//If we receive a part of the response, write it to disk
let previousChunk: Promise<void> = new Promise((innerResolve) => { innerResolve(); });