Fix path.posix.sep which appears to be undefined on Travis CI

This commit is contained in:
Jeremy Ruston 2020-02-04 14:24:57 +00:00
parent aaae1d1bbb
commit 9dd719ba32
1 changed files with 2 additions and 2 deletions

View File

@ -2080,9 +2080,9 @@ $tw.loadWikiTiddlers = function(wikiPath,options) {
for(var title in $tw.boot.files) {
relativePath = path.relative(resolvedWikiPath,$tw.boot.files[title].filepath);
output[title] =
path.sep === path.posix.sep ?
path.sep === "/" ?
relativePath :
relativePath.split(path.sep).join(path.posix.sep);
relativePath.split(path.sep).join("/");
}
$tw.wiki.addTiddler({title: "$:/config/OriginalTiddlerPaths", type: "application/json", text: JSON.stringify(output)});
}