diff options
| -rw-r--r-- | gui.js | 1 | ||||
| -rwxr-xr-x | snap.html | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -2831,6 +2831,7 @@ IDE_Morph.prototype.newProject = function () { this.createCorral(); this.selectSprite(this.stage.children[0]); this.fixLayout(); + this.droppedText(this.getURL('overpass.xml')); // YOW hack (TODO) }; IDE_Morph.prototype.save = function () { @@ -105,8 +105,10 @@ world.worldCanvas.focus(); ide = new IDE_Morph(); ide.openIn(world); - // load custom blocks that simplify the use of overpass - ide.droppedText(ide.getURL('overpass.xml')); + + setTimeout(function () { // FIXME dirty hack + ide.droppedText(ide.getURL('overpass.xml')); + }, 2000); setInterval(loop, 10); </script> </body> |
