summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui.js1
-rwxr-xr-xsnap.html6
2 files changed, 5 insertions, 2 deletions
diff --git a/gui.js b/gui.js
index a8fb59a..ff60343 100644
--- a/gui.js
+++ b/gui.js
@@ -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 () {
diff --git a/snap.html b/snap.html
index b5c2e7f..d9ead90 100755
--- a/snap.html
+++ b/snap.html
@@ -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>