Skip to content
Browse files

Fixed relative path issues

  • Loading branch information...
1 parent e833834 commit d03440a703e97f12b921ac0ef040ca9d306d17d9 @teemow teemow committed with Connorhd Dec 27, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 fu.js
View
3 fu.js
@@ -72,7 +72,8 @@ fu.staticHandler = function (filename) {
}
sys.puts("loading " + filename + "...");
- var promise = posix.cat(filename, encoding);
+ var path = __filename.match(/(.*\/)/)[0];
+ var promise = posix.cat(path + filename, encoding);
promise.addCallback(function (data) {
body = data;

0 comments on commit d03440a

Please sign in to comment.
Something went wrong with that request. Please try again.