aboutsummaryrefslogtreecommitdiff
path: root/js/io/system/chromeapi.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/system/chromeapi.js')
-rw-r--r--js/io/system/chromeapi.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/js/io/system/chromeapi.js b/js/io/system/chromeapi.js
index 04e62b11..6bf6b9fe 100644
--- a/js/io/system/chromeapi.js
+++ b/js/io/system/chromeapi.js
@@ -25,8 +25,14 @@ exports.ChromeApi = Montage.create(Object.prototype, {
25 if (window.webkitRequestFileSystem) { 25 if (window.webkitRequestFileSystem) {
26 //Current way to init Chrome's fileSystem API 26 //Current way to init Chrome's fileSystem API
27 window.webkitRequestFileSystem(window.PERSISTENT, size*1024*1024, function (fs) { 27 window.webkitRequestFileSystem(window.PERSISTENT, size*1024*1024, function (fs) {
28 //Storing reference to instance
28 this.fileSystem = fs; 29 this.fileSystem = fs;
29 }.bind(this)); 30 //Dispatching action ready event
31 var readyEvent = document.createEvent("CustomEvent");
32 readyEvent.initEvent('ready', true, true);
33 this.dispatchEvent(readyEvent);
34 }.bind(this), function (e) {return false}); //Returns false on error (not able to init)
35 //
30 return true; 36 return true;
31 } else { 37 } else {
32 //No fileSystem API 38 //No fileSystem API
@@ -93,6 +99,15 @@ exports.ChromeApi = Montage.create(Object.prototype, {
93 enumerable: true, 99 enumerable: true,
94 value: function() { 100 value: function() {
95 } 101 }
102 },
103 ////////////////////////////////////////////////////////////////////
104 //
105 getLocalLibrary: {
106 enumerable: false,
107 value: function () {
108 //
109 return {};
110 }
96 } 111 }
97 //////////////////////////////////////////////////////////////////// 112 ////////////////////////////////////////////////////////////////////
98 //////////////////////////////////////////////////////////////////// 113 ////////////////////////////////////////////////////////////////////