mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-09 11:29:58 +00:00
27 lines
590 B
JavaScript
27 lines
590 B
JavaScript
/*\
|
|
title: $:/plugins/dropbox/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";
|
|
|
|
var titleLoadedWikis = "$:/plugins/dropbox/LoadedWikis";
|
|
|
|
exports.startup = function() {
|
|
$tw.wiki.addTiddler({title: titleLoadedWikis, text: "no"},true);
|
|
// Load tiddlers
|
|
$tw.plugins.dropbox.loadWikiFiles("/",function() {
|
|
$tw.wiki.addTiddler({title: titleLoadedWikis, text: "yes"},true);
|
|
console.log("Loaded all wikis",$tw.wiki.tiddlers);
|
|
});
|
|
};
|
|
|
|
})();
|