Advertisement
Guest User

Untitled

a guest
Sep 21st, 2011
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // 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
  2. - (void)webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(id)origin database:(NSString *)databaseIdentifier
  3. {
  4.     static const unsigned long long defaultQuota = 5 * 1024 * 1024; //5 MB
  5.     if ([origin respondsToSelector: @selector(setQuota:)])
  6.     {
  7.         [origin setQuota: defaultQuota];
  8.     }
  9.     else
  10.     {
  11.         NSLog(@"could not increase quota for %@", defaultQuota);
  12.     }
  13. }
  14.  
  15. And I have this in my preferences definitions list:
  16.  
  17. // Enable web sql db -- This does not appear to work...
  18. // A possible fix would be to discover how to define the actual webdb quota size.
  19. [prefs setDatabasesEnabled:YES];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement