mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
No longer bootstrap path
This commit is contained in:
parent
0b3897a6f3
commit
a8625f3056
@ -32,11 +32,12 @@
|
||||
[webView setMainFrameURL:self.URL];
|
||||
}
|
||||
else {
|
||||
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
|
||||
NSString *bootstrapPath = [resourcePath stringByAppendingString:@"/src/require.js"];
|
||||
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[[webView mainFrame] globalContext]];
|
||||
[jsc setObject:self withName:@"WindowController"];
|
||||
[jsc evalJSFile:bootstrapPath];
|
||||
|
||||
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
|
||||
NSString *requirePath = [resourcePath stringByAppendingString:@"/src/require.js"];
|
||||
[jsc evalJSFile:requirePath];
|
||||
|
||||
NSURL *resourceURL = [[NSBundle mainBundle] resourceURL];
|
||||
NSURL *htmlURL = [resourceURL URLByAppendingPathComponent:@"static"];
|
||||
|
Loading…
Reference in New Issue
Block a user