activate jscocoa

This commit is contained in:
Chris Wanstrath
2011-08-18 22:26:55 -07:00
parent 5e6af504ab
commit 8fd4c08ec2

View File

@@ -7,6 +7,7 @@
//
#import "AtomicityAppDelegate.h"
#import "JSCocoa.h"
@implementation AtomicityAppDelegate
@@ -24,6 +25,9 @@
id html = [[NSString alloc] initWithContentsOfURL:path];
[[webView mainFrame] loadHTMLString:html baseURL:[[NSBundle mainBundle] resourceURL]];
// https://github.com/parmanoir/jscocoa#readme
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[[webView mainFrame] globalContext]];
}
@end