From 2133bd1e74864b4b69d824ba7977fa07034af962 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Wed, 8 Feb 2012 14:38:20 -0800 Subject: Setting up packaged app --- js/io/system/ninjalibrary.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'js/io/system') 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, { //File to copy this.chromeApi.fileContent(contents[i].fullPath, function (result) { // - - /* -var ui8a = new Uint8Array(result.content); - console.log(ui8a); - - var blob = new window.WebKitBlobBuilder; - blob.append(result.content); -*/ - //console.log(blob.getBlob(result.data.type)); - //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content, contentType: result.data.type}); //this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: blob.getBlob(result.data.type), contentType: result.data.type}); this.coreApi.createFile({uri: fileRoot+result.file.fullPath, contents: result.content}); }.bind(this)); @@ -143,7 +133,7 @@ var ui8a = new Uint8Array(result.content); // var i, l, libs, libjson, xhr = new XMLHttpRequest(), tocopylibs = [], copied; //Getting known json list of libraries to copy to chrome - xhr.open("GET", '/ninja-internal/js/io/system/ninjalibrary.json', false); + xhr.open("GET", '/js/io/system/ninjalibrary.json', false); xhr.send(); //Checkng for correct reponse if (xhr.readyState === 4) { -- cgit v1.2.3