summaryrefslogtreecommitdiff
path: root/gui.js
diff options
context:
space:
mode:
authorGubolin <gubolin@fantasymail.de>2014-08-03 17:27:53 +0200
committerGubolin <gubolin@fantasymail.de>2014-08-03 17:27:53 +0200
commitecbf52924e6319d2714f93af65e866d49c1e18c6 (patch)
treefa27f77f2cebc4c0b46415127ed4e3ddf1cb802e /gui.js
parentac76419568d2e30f939ee97ef85a9c6ec886a655 (diff)
downloadsnap-ecbf52924e6319d2714f93af65e866d49c1e18c6.tar.gz
snap-ecbf52924e6319d2714f93af65e866d49c1e18c6.zip
integrate Snapin8r into Snap!
Diffstat (limited to 'gui.js')
-rw-r--r--gui.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui.js b/gui.js
index 6af9137..74cf923 100644
--- a/gui.js
+++ b/gui.js
@@ -1566,7 +1566,12 @@ IDE_Morph.prototype.droppedBinary = function (anArrayBuffer, name) {
myself = this,
suffix = name.substring(name.length - 3);
- if (suffix.toLowerCase() !== 'ypr') {return; }
+ if (suffix.toLowerCase() !== 'ypr') {
+ var zip = new JSZip(anArrayBuffer);
+ myself.droppedText(Snapin8r(zip));
+
+ return;
+ }
function loadYPR(buffer, lbl) {
var reader = new sb.Reader(),