Hello all,
I am still very new to TW5 so this might be an easy question. I am trying
to write a plugin that will modify the $:/status/UserName tiddler based on
credentials from a server but I can't seem to get the boot.js to load this
module? Maybe I just don't understand how startup modules are supposed to
work... any ideas?
/*\
title: $:/plugins/name/defineuser/setusername.js
type: application/javascript
module-type: startup
Adds the given username to the username for signing
\*/
(function() {
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.startup = function() {
$tw.wiki.addTiddler(new $tw.Tiddler({title: "$:/status/UserName", text:
"Joel"}));
};
})();
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.