I'm hitting an error " TypeError: Cannot call method 'requestQuota' of undefined " when we try to run the following code
- Code: Select all
try{
window.requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem;
//persistent storage request
window.webkitStorageInfo.requestQuota(PERSISTENT, 1024*1024, function(grantedBytes) {
window.requestFileSystem(PERSISTENT, grantedBytes, function(fs) {
Ext.getCmp('infoLog').update('<div>callback returned the filesystem object '+fs+'</div>');
},function errorHandler(error){
Ext.getCmp('errorLog').update('<div>fs init error on requestFileSystem: '+error+'</div>');
});
},function errorHandler(error){
Ext.getCmp('errorLog').update('<div>fs init error on requestQuota: '+error+'</div>');
});
//temporary storage request
//window.requestFileSystem(window.TEMPORARY, 1024 * 1024, function(fs) {
// ViewsUtils.fs = fs;
//}, this.opt_errorHandler);
} catch(error){
Ext.getCmp('errorLog').update('<div>cef issues : '+error+'</div>');
console.log("cef issues : "+error);
}
Is there a way to set the available local storage to unlimited similar to the "unlimitedStorage" parameter of chrome extensions? (as discussed in http://updates.html5rocks.com/tag/filesystem )
Any ideas on a workarround for this?