mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 11:15:24 +03:00
whoa
This commit is contained in:
parent
dd9f35d6b6
commit
e44414ae26
@ -33,11 +33,9 @@
|
||||
else {
|
||||
NSString *resourcePath = [[NSBundle mainBundle] resourcePath];
|
||||
NSString *bootstrapPath = [resourcePath stringByAppendingString:@"/src/require.js"];
|
||||
NSString *coffeePath = [resourcePath stringByAppendingString:@"/vendor/coffee-script.js"];
|
||||
JSCocoa* jsc = [[JSCocoa alloc] initWithGlobalContext:[[webView mainFrame] globalContext]];
|
||||
[jsc setObject:self withName:@"WindowController"];
|
||||
[jsc evalJSFile:bootstrapPath];
|
||||
[jsc evalJSFile:coffeePath];
|
||||
|
||||
NSURL *resourceURL = [[NSBundle mainBundle] resourceURL];
|
||||
NSURL *htmlURL = [resourceURL URLByAppendingPathComponent:@"static"];
|
||||
|
@ -46,6 +46,7 @@ exts =
|
||||
__jsc__.evalJSString_withScriptPath code, file
|
||||
__defines.pop()?.call()
|
||||
coffee: (file) ->
|
||||
{CoffeeScript} = require 'coffee-script'
|
||||
exts.js file, CoffeeScript.compile __read file
|
||||
|
||||
resolve = (file) ->
|
||||
|
Loading…
Reference in New Issue
Block a user