$tw.boot.wikiInfo.config obsolete?

46 views
Skip to first unread message

TheDiveO

unread,
Mar 31, 2017, 6:11:52 AM3/31/17
to TiddlyWikiDev
Hi,

I got a bug report that involves $tw.boot.wikiInfo.config not being present on a TW 5.1.13 on Node.js/TW5. For some reason I cannot reproduce on my installation. Alas, is $tw.boot.wikiInfo.config still the correct way to access configuration options? If not, what is the current current way?

Jeremy Ruston

unread,
Mar 31, 2017, 6:24:26 AM3/31/17
to TiddlyWikiDev
Hi TheDiveO

I got a bug report that involves $tw.boot.wikiInfo.config not being present on a TW 5.1.13 on Node.js/TW5. For some reason I cannot reproduce on my installation. Alas, is $tw.boot.wikiInfo.config still the correct way to access configuration options? If not, what is the current current way?

$tw.boot.wikiInfo is a copy of the `tiddlywiki.info` file of the current wiki. Most of the properties there are optional, so any code that is accessing $tw.boot.wikiInfo.config should first check that it exists. 

Best wishes

Jeremy



--
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 tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/f7651a8e-90bf-4dc5-bf40-20d6fa06c8ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

TheDiveO

unread,
Mar 31, 2017, 6:32:08 AM3/31/17
to TiddlyWikiDev
Is the config in $tw.boot.wikiInfo also optional?

Jeremy Ruston

unread,
Mar 31, 2017, 6:44:41 AM3/31/17
to tiddly...@googlegroups.com
Hi TheDiveO

Is the config in $tw.boot.wikiInfo also optional?

Yes, most of the fields in tiddlywiki.info/$tw.boot.wikiInfo are optional, including “config” (that’s why most tiddlywiki.info files in the repo do not include it)

Best wishes

Jeremy

TheDiveO

unread,
Mar 31, 2017, 6:46:35 AM3/31/17
to TiddlyWikiDev
Thank you very much for this clarification, Jeremy!
Reply all
Reply to author
Forward
0 new messages