From ec48446a00bb38cae8867ed4063ecc0ca2297d28 Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sat, 28 Mar 2015 10:52:56 +0100 Subject: adde98 broke binary.sh project loading --- binary.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'binary.sh') diff --git a/binary.sh b/binary.sh index 5ed25ac..b380a48 100755 --- a/binary.sh +++ b/binary.sh @@ -68,9 +68,10 @@ then sed -i "s/snap.html/snap.html${url}/g" config.xml package.json else # load custom project from url - sed -i "/overpass\.xml/a\ - ide.droppedText(ide.getURL('$url'));" snap.html - sed -i "/overpass\.xml/d" snap.html + sed -i "/ide\.openIn/a\ + setTimeout(function () {\ + ide.droppedText(ide.getURL('$url'));\ + }, 2000);" snap.html sed -i "/this.toggleAppMode(false)/d" gui.js sed -i "s/snap.html/snap.html#run:/g" config.xml package.json fi -- cgit v1.3.1