mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
💄
This commit is contained in:
@@ -5,11 +5,11 @@
|
||||
#import <WebKit/WebKit.h>
|
||||
|
||||
@interface AtomController ()
|
||||
- (void)createWebView;
|
||||
|
||||
@property (nonatomic, retain) JSCocoa *jscocoa;
|
||||
@property (nonatomic, retain, readwrite) NSString *url;
|
||||
@property (nonatomic, retain, readwrite) NSString *bootstrapScript;
|
||||
|
||||
- (void)createWebView;
|
||||
@end
|
||||
|
||||
@interface WebView (Atom)
|
||||
|
||||
@@ -8,7 +8,6 @@ _ = require 'underscore'
|
||||
# window:load - Same as window.onLoad. Final event of app startup.
|
||||
windowAdditions =
|
||||
url: $atomController.url?.toString()
|
||||
onerror: -> @showConsole true
|
||||
|
||||
startup: ->
|
||||
if not @resource = atom.router.open @url
|
||||
@@ -35,6 +34,9 @@ windowAdditions =
|
||||
save: ->
|
||||
@resource.save()
|
||||
|
||||
onerror: ->
|
||||
@showConsole true
|
||||
|
||||
handleKeyEvent: ->
|
||||
atom.keybinder.handleEvent arguments...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user