mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
make 'inspect element' work
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user