mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +00:00
ce47f5e1d4
Currently tw5dropbox is broken, pending some further changes around module handling
27 lines
621 B
JavaScript
27 lines
621 B
JavaScript
/*\
|
|
title: $:/plugins/tiddlywiki/dropbox-main/dropbox-main.js
|
|
type: application/javascript
|
|
module-type: dropbox-startup
|
|
|
|
Startup the Dropbox main app
|
|
|
|
\*/
|
|
(function(){
|
|
|
|
/*jslint node: true, browser: true */
|
|
/*global $tw: false */
|
|
"use strict";
|
|
|
|
exports.startup = function(loggedIn) {
|
|
if(loggedIn) {
|
|
$tw.wiki.addTiddler({title: $tw.plugins.dropbox.titleLoadedWikis, text: "no"},true);
|
|
// Load tiddlers
|
|
$tw.plugins.dropbox.loadWikiFiles("/",function() {
|
|
$tw.wiki.addTiddler({title: $tw.plugins.dropbox.titleLoadedWikis, text: "yes"},true);
|
|
console.log("Loaded all wikis",$tw.wiki.tiddlers);
|
|
});
|
|
}
|
|
};
|
|
|
|
})();
|