Mother fucking localStorage.

This commit is contained in:
Corey Johnson
2011-10-28 17:12:28 -07:00
parent 445e5a8ce0
commit a16d47cbf7

View File

@@ -38,6 +38,11 @@
// AppDelegate
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification {
// Hack to make localStorage work
WebPreferences* prefs = [WebPreferences standardPreferences];
[prefs _setLocalStorageDatabasePath:@"~/.atomicity/storage"];
[prefs setLocalStorageEnabled:YES];
NSDictionary *defaults = [NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES], @"WebKitDeveloperExtras", nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
}