Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private saveFileContent(newMapFile: File) {
- const newZip = new JSZip();
- newZip
- .loadAsync(newMapFile)
- .then((content: JSZip) => {
- const level = content.file('level.geojson').async('text');
- const section = content.file('section.geojson').async('text');
- Promise
- .all([level])
- .then((result) => {
- // chce żeby mi metodka to zwróciła ten result
- });
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement