Skip to content

Commit

Permalink
Add support for using getResource in Ringo, if available, fixes persv…
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Nov 25, 2013
1 parent 67d8978 commit 34535f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ try{
var settings = JSON.parse(read("local.json").toString("utf8"));
}catch(e){
try{
if(typeof java == "object"){
if(typeof java == "object" && typeof getResource == "function"){
settings = JSON.parse(getResource("local.json").content);
}else{
settings = require("rc")("persvr",{
"processes": 2,
"processes": 1,
"port": 8082,
"repl": true,
"replPort": 5555,
Expand Down

0 comments on commit 34535f4

Please sign in to comment.