Export the same name as the file

This commit is contained in:
Jordan Eldredge 2017-09-07 21:36:29 -07:00
parent 2e9d281848
commit 3a02258d81

View file

@ -90,7 +90,7 @@ const defaultPlaylistStyle = {
};
// A promise that, given a File object, returns a skin style object
async function parseSkin(zipFile) {
async function skinParser(zipFile) {
const buffer = await genBufferFromFile(zipFile);
const zip = await JSZip.loadAsync(buffer);
const imageObjs = await Promise.all(
@ -115,4 +115,4 @@ async function parseSkin(zipFile) {
return { colors, playlistStyle, images };
}
export default parseSkin;
export default skinParser;