type coerce

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-07-21 22:33:01 +01:00
parent c4fc70b9be
commit fd869b20fa

View file

@ -234,7 +234,7 @@ export async function downloadBugReport(opts) {
await new Promise((resolve => { await new Promise((resolve => {
const reader = new FileReader(); const reader = new FileReader();
reader.addEventListener('loadend', ev => { reader.addEventListener('loadend', ev => {
tape.append(`log-${i++}.log`, pako.ungzip(ev.target.result)); tape.append(`log-${i++}.log`, pako.ungzip(ev.target.result as string));
resolve(); resolve();
}); });
reader.readAsArrayBuffer(value as Blob); reader.readAsArrayBuffer(value as Blob);