mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Add custom mime-type to exported sb3 and sprite
This commit is contained in:
parent
11b52c4e60
commit
40be416c9f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue