Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Nov 23, 2015
1 parent df09598 commit 11b0bde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions bin/castle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2319,7 +2319,7 @@ class Main extends Model {

public static var inst : Main;
static function main() {
untyped if( js.node.Fs.accessSync == null ) js.node.Fs.accessSync = (js.node.Fs : Dynamic).existsSync;
untyped if( js.node.Fs.accessSync == null ) js.node.Fs.accessSync = function(path) if( !(js.node.Fs : Dynamic).existsSync(path) ) throw path + " does not exists";
inst = new Main();
Reflect.setField(js.Browser.window, "_", inst);
}
Expand Down

0 comments on commit 11b0bde

Please sign in to comment.