Skip to content

Commit

Permalink
allow #open: to fetch and load libraries from a URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bromagosa committed Dec 11, 2023
1 parent b863ffc commit c5d8115
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,14 @@ IDE_Morph.prototype.openIn = function (world) {
projectData.indexOf('<project') === 0
) {
this.rawOpenProjectString(projectData);
} else if (
projectData.indexOf('<blocks') === 0
) {
this.rawOpenBlocksString(
projectData,
null, // name, optional
true // silently
);
}
this.hasChangedMedia = true;
},
Expand Down

0 comments on commit c5d8115

Please sign in to comment.