1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

Improve logic for initialising reading node tiddlers

We want fine control of whether tiddlers are read from the DOM or the
file system, without ganging it to whether we’re on node vs. browser.
This commit is contained in:
Jermolene 2014-01-18 14:53:26 +00:00
parent 2c790d982f
commit 60926198b1

View File

@ -1411,7 +1411,7 @@ $tw.boot.startup = function(options) {
contentTypeInfo: {} // Map type to {encoding:,extension:} contentTypeInfo: {} // Map type to {encoding:,extension:}
} }
}); });
if($tw.node) { if(!options.readBrowserTiddlers) {
// For writable tiddler files, a hashmap of title to {filepath:,type:,hasMetaFile:} // For writable tiddler files, a hashmap of title to {filepath:,type:,hasMetaFile:}
$tw.boot.files = {}; $tw.boot.files = {};
// System paths and filenames // System paths and filenames