1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Minor refactoring

This commit is contained in:
Jeremy Ruston 2011-11-29 19:25:29 +00:00
parent 6eba3c3c07
commit 44b7b93410

View File

@ -58,11 +58,10 @@ FileRetriever.retrieveFile = function(filepath,contextPath,callback) {
// If we've got a full HTTP URI then we're good to go
newpath = url.resolve(contextPath,filepath);
httpRequestQueue.push({url: newpath},callback);
return newpath;
} else {
// It's a file requested in a file context
newpath = path.resolve(path.dirname(contextPath),filepath);
fileRequestQueue.push({filepath: newpath},callback);
}
return newpath;
}
}