diff --git a/src/lib/file-uploader.js b/src/lib/file-uploader.js index 12f67f8a47595df663e5bf5a7954c3777be454ba..c6bd45bad24f190316f3d0bb1d377cece94fb1be 100644 --- a/src/lib/file-uploader.js +++ b/src/lib/file-uploader.js @@ -175,10 +175,9 @@ const soundUpload = function (fileData, fileType, soundName, storage, handleSoun const spriteUpload = function (fileData, fileType, spriteName, storage, handleSprite) { switch (fileType) { - case '': { // We think this is a .sprite2 or .sprite3 file + case '': + case 'archive/zip': { // We think this is a .sprite2 or .sprite3 file handleSprite(new Uint8Array(fileData)); - // TODO VM addSprite function should handle - // buffers directly and get unpacked in scratch-parser return; } case 'image/svg+xml': @@ -209,10 +208,6 @@ const spriteUpload = function (fileData, fileType, spriteName, storage, handleSp })); return; } - // case 'archive/zip': { // sprite2 / sprite3 - // handleSprite(JSON.stringify(fileData.toString('utf-8'))); - // return; - // } default: { return; }