Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. private saveFileContent(newMapFile: File) {
  2. const newZip = new JSZip();
  3. newZip
  4. .loadAsync(newMapFile)
  5. .then((content: JSZip) => {
  6. const level = content.file('level.geojson').async('text');
  7. const section = content.file('section.geojson').async('text');
  8.  
  9. Promise
  10. .all([level])
  11. .then((result) => {
  12. // chce żeby mi metodka to zwróciła ten result
  13. });
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement