maybe you can put the condition around all the code:
if ($tw && $tw.browser){
function .....
etc
exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor
}
On Wednesday, May 1, 2019 at 6:36:07 PM UTC+2, LinOnetwo wrote:
>
> if ($tw && $tw.browser) exports.adaptorClass = SoLiDTiddlyWikiSyncAdaptor
>
> But when starting tiddlywiki from command line, it still throws
>
> ReferenceError: window is not defined
>
--
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 https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/4dbc924a-6c1f-4a4f-9f51-384fd14b1ed4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.