mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-22 17:47:19 +00:00
Fix path.posix.sep which appears to be undefined on Travis CI
This commit is contained in:
parent
aaae1d1bbb
commit
9dd719ba32
@ -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)});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user