|
@ -121,18 +121,13 @@ function domContentLoaded(name, tc, config, width, height) { |
|
|
window.requestFileSystem(PERSISTENT, bytes, function(fs) { |
|
|
window.requestFileSystem(PERSISTENT, bytes, function(fs) { |
|
|
console.log('Opened file system: ' + fs.name); |
|
|
console.log('Opened file system: ' + fs.name); |
|
|
fileSystem = fs; |
|
|
fileSystem = fs; |
|
|
copyHelpFiles().done(function() { |
|
|
common.updateStatus( |
|
|
common.updateStatus( |
|
|
|
|
|
'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load'); |
|
|
'Allocated ' + bytes + ' bytes of persistent storage. Running the first time will take 17 seconds to load'); |
|
|
common.attachDefaultListeners(); |
|
|
common.attachDefaultListeners(); |
|
|
common.createNaClModule(name, tc, config, width, height); |
|
|
common.createNaClModule(name, tc, config, width, height); |
|
|
}); |
|
|
setTimeout(function(){ |
|
|
/*dirReader = fs.root.createReader(); |
|
|
copyHelpFiles(); |
|
|
dirReader.readEntries(function(results) { |
|
|
},2000); |
|
|
console.log(results); |
|
|
|
|
|
}, function(){ |
|
|
|
|
|
console.log('File IO error'); |
|
|
|
|
|
});*/ |
|
|
|
|
|
}, errorHandler); |
|
|
}, errorHandler); |
|
|
}, |
|
|
}, |
|
|
function(e) { |
|
|
function(e) { |
|
|