aboutsummaryrefslogtreecommitdiff
path: root/js/io
diff options
context:
space:
mode:
Diffstat (limited to 'js/io')
-rw-r--r--js/io/system/ninjalibrary.js12
1 files changed, 1 insertions, 11 deletions
diff --git a/js/io/system/ninjalibrary.js b/js/io/system/ninjalibrary.js
index 7b524189..c85de3b0 100644
--- a/js/io/system/ninjalibrary.js
+++ b/js/io/system/ninjalibrary.js
@@ -114,16 +114,6 @@ exports.NinjaLibrary = Montage.create(Object.prototype, {
114 //File to copy 114 //File to copy
115 this.chromeApi.fileContent(contents[i].fullPath, function (result) { 115 this.chromeApi.fileContent(contents[i].fullPath, function (result) {
116 // 116 //
117
118 /*
119var ui8a = new Uint8Array(result.content);
120 console.log(ui8a);
121
122 var blob = new window.WebKitBlobBuilder;
123 blob.append(result.content);
124*/
125 //console.log(blob.getBlob(result.data.type));
126 //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content, contentType: result.data.type});
127 //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); 117 //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type});
128 this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content}); 118 this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content});
129 }.bind(this)); 119 }.bind(this));
@@ -143,7 +133,7 @@ var ui8a = new Uint8Array(result.content);
143 // 133 //
144 var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied; 134 var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied;
145 //Getting known json list of libraries to copy to chrome 135 //Getting known json list of libraries to copy to chrome
146 xhr.open("GET", '/ninja-internal/js/io/system/ninjalibrary.json', false); 136 xhr.open("GET", '/js/io/system/ninjalibrary.json', false);
147 xhr.send(); 137 xhr.send();
148 //Checkng for correct reponse 138 //Checkng for correct reponse
149 if (xhr.readyState === 4) { 139 if (xhr.readyState === 4) {