From 8fd4c08ec29daf923bfb05f220c7500db95ed369 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 18 Aug 2011 22:26:55 -0700 Subject: [PATCH] activate jscocoa --- AtomicityAppDelegate.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AtomicityAppDelegate.m b/AtomicityAppDelegate.m index 0b990c97d..6c7c62fb0 100644 --- a/AtomicityAppDelegate.m +++ b/AtomicityAppDelegate.m @@ -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