Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/2524/solve-map-loading-of-compressed-files #2525

Merged
merged 7 commits into from
Nov 29, 2021
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class FileChooserController {

onImportNewFiles(element) {
this.$scope.$apply(() => {
let content
let content: string
let readFiles = 0

for (let index = 0; index < element.files.length; index++) {
Expand All @@ -38,7 +38,7 @@ export class FileChooserController {
}

reader.onload = event => {
content = isCompressed ? zlib.unzipSync(Buffer.from(<string>event.target.result)) : event.target.result
content = (isCompressed ? zlib.unzipSync(Buffer.from(<string>event.target.result)) : event.target.result).toString()
}

reader.onloadend = () => {
Expand Down