mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-19 20:40:02 +00:00
Remove checking for missing wiki folders
Thus undoing 744245ea3249446fd15f504190efb1d828935d01 because of #1002
This commit is contained in:
parent
e6eeac0bbf
commit
9fedf38657
@ -1714,9 +1714,7 @@ $tw.boot.startup = function(options) {
|
|||||||
// If the first command line argument doesn't start with `--` then we
|
// If the first command line argument doesn't start with `--` then we
|
||||||
// interpret it as the path to the wiki folder, which will otherwise default
|
// interpret it as the path to the wiki folder, which will otherwise default
|
||||||
// to the current folder
|
// to the current folder
|
||||||
var explicitWikiPath;
|
|
||||||
if($tw.boot.argv[0] && $tw.boot.argv[0].indexOf("--") !== 0) {
|
if($tw.boot.argv[0] && $tw.boot.argv[0].indexOf("--") !== 0) {
|
||||||
explicitWikiPath = true;
|
|
||||||
$tw.boot.wikiPath = $tw.boot.argv[0];
|
$tw.boot.wikiPath = $tw.boot.argv[0];
|
||||||
$tw.boot.argv = $tw.boot.argv.slice(1);
|
$tw.boot.argv = $tw.boot.argv.slice(1);
|
||||||
} else {
|
} else {
|
||||||
@ -1764,9 +1762,6 @@ $tw.boot.startup = function(options) {
|
|||||||
$tw.loadTiddlersBrowser();
|
$tw.loadTiddlersBrowser();
|
||||||
} else {
|
} else {
|
||||||
$tw.loadTiddlersNode();
|
$tw.loadTiddlersNode();
|
||||||
if(!$tw.boot.wikiInfo && explicitWikiPath) {
|
|
||||||
return $tw.utils.error("Wiki folder '" + $tw.boot.wikiPath + "' is missing a 'tiddlywiki.info' file");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// Unpack plugin tiddlers
|
// Unpack plugin tiddlers
|
||||||
$tw.wiki.readPluginInfo();
|
$tw.wiki.readPluginInfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user