Skip to content

Commit

Permalink
Merge pull request #34 from nkashyap/dev
Browse files Browse the repository at this point in the history
fixed path issue
  • Loading branch information
nkashyap committed Sep 29, 2014
2 parents 087392f + c3c6a21 commit 494acb8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xconsole.io",
"version": "0.2.4",
"version": "0.2.4a",
"project": "console.io",
"subdomain": "console.io",
"description": "Javascript Remote Web Console",
Expand Down
6 changes: 3 additions & 3 deletions server/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ var Utils = {
getFile: function getFile(loc, config, file) {
var filePath;

if (fs.existsSync(loc.join("/"))) {
var versionPath = loc.concat([config.version, file]).join("/"),
defaultPath = loc.concat(['_default_', file]).join("/");
if (fs.existsSync(ROOT + loc.join("/"))) {
var versionPath = ROOT + loc.concat([config.version, file]).join("/"),
defaultPath = ROOT + loc.concat(['_default_', file]).join("/");

if (fs.existsSync(versionPath)) {
filePath = versionPath;
Expand Down

0 comments on commit 494acb8

Please sign in to comment.