1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-23 19:57:38 +00:00

Make the core into a plugin

This commit is contained in:
Jeremy Ruston
2013-03-28 17:07:30 +00:00
parent c411ee5106
commit cd36f594c5
10 changed files with 18 additions and 9 deletions

View File

@@ -90,8 +90,7 @@ exports.startup = function() {
$tw.crypto.setPassword(null);
});
// Apply stylesheets
var styleTiddlers = $tw.wiki.getTiddlersWithTag("$:/core/styles");
$tw.utils.each(styleTiddlers,function(title) {
$tw.utils.each($tw.modules.types.stylesheet,function(moduleInfo,title) {
// Stylesheets don't refresh, yet
var parser = $tw.wiki.parseTiddler(title),
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});