kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix path.posix.sep which appears to be undefined on Travis CI
rodzic
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)});
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue