From 5e6af504aba5cbd4409daccc37180ec2f9f51e61 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 18 Aug 2011 22:13:13 -0700 Subject: [PATCH] make 'inspect element' work --- AtomicityAppDelegate.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/AtomicityAppDelegate.m b/AtomicityAppDelegate.m index 02bfa2942..0b990c97d 100644 --- a/AtomicityAppDelegate.m +++ b/AtomicityAppDelegate.m @@ -12,12 +12,14 @@ @synthesize window, webView; -- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { +- (void)applicationWillFinishLaunching:(NSNotification *)aNotification { NSDictionary *defaults = [NSDictionary dictionaryWithObjectsAndKeys: [NSNumber numberWithBool:YES], @"WebKitDeveloperExtras", nil]; [[NSUserDefaults standardUserDefaults] registerDefaults:defaults]; - +} + +- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { id path = [[NSBundle mainBundle] URLForResource:@"index" withExtension:@"html"]; id html = [[NSString alloc] initWithContentsOfURL:path];