This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jessep on github. | |
* I am jessep (https://keybase.io/jessep) on keybase. | |
* I have a public key whose fingerprint is AB3E 78BD 7CE3 3A1D B8C8 3F3C 3759 8FF7 A5AD 3667 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I figured it out. You have to requestQuota | |
// before requestFileSystem with PERSISTENT storage | |
var INITIALIZATION_DATA_FILENAME = 'test.json'; | |
function getQuotaThenStoreFile(){ | |
window.webkitStorageInfo.requestQuota(PERSISTENT, 1024*1024, function(grantedBytes) { | |
//window.requestFileSystem(PERSISTENT, grantedBytes, onInitFs, errorHandler); | |
testStoringFile(grantedBytes); | |
}, function(e) { |