Commit fceec262 authored by Fred Chasen's avatar Fred Chasen

Check if slash is present in renderer.html path

parent 1aaa04ed
......@@ -114,8 +114,14 @@ Renderer.prototype.fileExists = function (inputPath) {
};
Renderer.prototype.getRendererPath = function () {
var directoryPath = __dirname.replace('lib', '');
return directoryPath + 'renderer/';
var directoryPath = __dirname.replace('lib', 'renderer');
var normPath = _path2.default.normalize(directoryPath);
if (normPath[normPath.length] != "/") {
normPath += "/";
}
return normPath;
};
Renderer.prototype.getRelativePath = function (basePath, inputPath) {
......
......@@ -92,8 +92,14 @@ Renderer.prototype.fileExists = function (inputPath) {
};
Renderer.prototype.getRendererPath = function () {
var directoryPath = __dirname.replace('lib', '');
return directoryPath + 'renderer/';
var directoryPath = __dirname.replace('lib', 'renderer');
var normPath = path.normalize(directoryPath);
if (normPath[normPath.length] != "/") {
normPath += "/";
}
return normPath;
};
Renderer.prototype.getRelativePath = function (basePath, inputPath) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment