Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is supposedly a fix to define the web sql database size so that web sql db will work, but it doesn't seem to be working
- - (void)webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(id)origin database:(NSString *)databaseIdentifier
- {
- static const unsigned long long defaultQuota = 5 * 1024 * 1024; //5 MB
- if ([origin respondsToSelector: @selector(setQuota:)])
- {
- [origin setQuota: defaultQuota];
- }
- else
- {
- NSLog(@"could not increase quota for %@", defaultQuota);
- }
- }
- And I have this in my preferences definitions list:
- // Enable web sql db -- This does not appear to work...
- // A possible fix would be to discover how to define the actual webdb quota size.
- [prefs setDatabasesEnabled:YES];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement