diff --git a/src/virtual-machine.js b/src/virtual-machine.js index f1448aa6..b0bb5229 100644 --- a/src/virtual-machine.js +++ b/src/virtual-machine.js @@ -444,6 +444,10 @@ class VirtualMachine extends EventEmitter { compressionOptions: { level: 6 // Tradeoff between best speed (1) and best compression (9) } + }).then(result => { + // tw: We want to let the GUI know whether this project uses block that won't work in Scratch. + result.usesExtendedExtensions = JSON.parse(projectJson).extensions.includes('tw'); + return result; }); }