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

fix-syncer
Jeremy Ruston 2020-02-04 14:24:57 +00:00
rodzic aaae1d1bbb
commit 9dd719ba32
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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)});
}