Created
June 6, 2016 21:24
-
-
Save lelinhtinh/e8a13c341a4814e726653d1f9fce02c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.addEventListener('message', function (e) { | |
self.importScripts(e.data.libs); | |
var zip = new JSZip(); | |
zip.file('Hello.txt', e.data.content); | |
zip.generateAsync({ | |
type: 'blob' | |
}).then(function (blob) { | |
self.postMessage(blob); | |
}); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment