Skip to content

Instantly share code, notes, and snippets.

### 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:
@jessep
jessep / storage_quota_error.js
Last active August 29, 2015 14:10
Crosswalk Failing Storage test [fixed]
// 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) {