diff --git a/Atom/Classes/AtomApp.m b/Atom/Classes/AtomApp.m index d5bd4b875..a8754b25d 100644 --- a/Atom/Classes/AtomApp.m +++ b/Atom/Classes/AtomApp.m @@ -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]; }