From 40be416c9fa7709b43893e052832c60ff18be7eb Mon Sep 17 00:00:00 2001 From: Chris Garrity Date: Wed, 7 Aug 2019 13:52:30 +0100 Subject: [PATCH] Add custom mime-type to exported sb3 and sprite --- src/virtual-machine.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/virtual-machine.js b/src/virtual-machine.js index 3320238f4..a1ebc5049 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -382,6 +382,7 @@ class VirtualMachine extends EventEmitter { return zip.generateAsync({ type: 'blob', + mimeType: 'application/x.scratch.sb3', compression: 'DEFLATE', compressionOptions: { level: 6 // Tradeoff between best speed (1) and best compression (9) @@ -432,6 +433,7 @@ class VirtualMachine extends EventEmitter { return zip.generateAsync({ type: typeof optZipType === 'string' ? optZipType : 'blob', + mimeType: 'application/x.scratch.sprite3', compression: 'DEFLATE', compressionOptions: { level: 6