diff --git a/Objective-J/Bootstrap.js b/Objective-J/Bootstrap.js index bf3bcace0..f84581122 100644 --- a/Objective-J/Bootstrap.js +++ b/Objective-J/Bootstrap.js @@ -15,9 +15,10 @@ rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode) for (; index < count; ++index) cwdNode.nodeAtSubPath(FILE.normal(includePaths[index]), YES); #ifdef BROWSER - OBJJ_MAIN_FILE = "main.j"; + if (typeof OBJJ_MAIN_FILE === "undefined") + OBJJ_MAIN_FILE = "main.j"; - fileImporterForPath(cwd)("main.j", YES, function() + fileImporterForPath(cwd)(OBJJ_MAIN_FILE, YES, function() { afterDocumentLoad(main); });