1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

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

View File

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