refactoring in playground, use zip file for web
This commit is contained in:
@@ -298,6 +298,7 @@ export class ZipFile {
|
||||
}
|
||||
}
|
||||
getData(name: string) {
|
||||
if (!(name in this.entries)) return
|
||||
let { start, end, size } = this.entries[name];
|
||||
return inflate(new Uint8Array(this.data.slice(start, end)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user