Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Commit

Permalink
TEMP: Only allow internal extensions (Pico/WeDo)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf committed Aug 18, 2014
1 parent adf75db commit a4170a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/extensions/ExtensionManager.as
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public class ExtensionManager {
if (ext && ext.showBlocks != flag) {
ext.showBlocks = flag;
if(app.jsEnabled && ext.javascriptURL) {
if(flag) {
// TEMPORARY HOTFIX: Only allow activation of internal extensions while we figure out what to do about an apparent extension security problem.
if(flag && ext.isInternal) {
var javascriptURL:String = ext.isInternal ? Scratch.app.fixExtensionURL(ext.javascriptURL) : ext.javascriptURL;
app.externalCall('ScratchExtensions.loadExternalJS', null, javascriptURL);
ext.showBlocks = false; // Wait for it to load
Expand Down

0 comments on commit a4170a6

Please sign in to comment.