chore: ts error

This commit is contained in:
scarqin 2022-06-17 19:21:37 +08:00
parent f83a674b1f
commit 2f5a103866

View File

@ -115,9 +115,7 @@ export const getBlobUrl = (inputStream, inputFileType) => {
type: inputFileType,
});
} else {
//@ts-ignore
const tmpBlobBuilder =
window.BlobBuilder || window.MozBlobBuilder || window.WebKitBlobBuilder || window.MSBlobBuilder;
const tmpBlobBuilder =window["BlobBuilder"] || window["MozBlobBuilder"] || window["WebKitBlobBuilder"] || window["MSBlobBuilder"];
const tmpBlobClass = new tmpBlobBuilder();
tmpBlobClass.append(inputStream);
tmpBlob = tmpBlobClass.getBlob(inputFileType);