Permalink
Browse files

Use fs instead of file to work with Ringo

  • Loading branch information...
1 parent 87f6ba4 commit ae00e2ae19a493f2ffca74448aefe039e098a07d @kriszyp committed Oct 14, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 settings.js
View
@@ -1,6 +1,11 @@
try{
var read = require("fs").readFileSync;
}catch(e){
+}
+if(!read){
+ read = require("fs").read;
+}
+if(!read){
read = require("file").read;
}
try{

0 comments on commit ae00e2a

Please sign in to comment.