Skip to content

Commit

Permalink
fix for issue #190
Browse files Browse the repository at this point in the history
  • Loading branch information
Plamen5kov committed Sep 8, 2015
1 parent 8b6e879 commit f2864f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/src/com/tns/Require.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ else if (moduleName.startsWith("./") || moduleName.startsWith("../"))
if (object != null)
{
String mainFile = object.getString("main");
if(!mainFile.contains(".js")) {
mainFile += ".js";
}
jsFile = new File(directory.getAbsolutePath(), mainFile);
found = true;
}
Expand Down

0 comments on commit f2864f9

Please sign in to comment.