From 5754216479bdad0efbbc5c7b82d8416a95a6bcca Mon Sep 17 00:00:00 2001 From: Jermolene Date: Wed, 7 Feb 2018 14:51:34 +0000 Subject: [PATCH] KaTeX: Fix problem running under TiddlyDesktop as a wikifolder Fixes https://github.com/Jermolene/TiddlyDesktop/issues/124 (the problem over there is that TiddlyWiki running as a wiki folder in TiddlyDesktop reports itself as running both under Node and the browser, and the previous test was wrongly choosing the fakedom) --- plugins/tiddlywiki/katex/files/tiddlywiki.files | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tiddlywiki/katex/files/tiddlywiki.files b/plugins/tiddlywiki/katex/files/tiddlywiki.files index 6af3ec967..f27a1c764 100644 --- a/plugins/tiddlywiki/katex/files/tiddlywiki.files +++ b/plugins/tiddlywiki/katex/files/tiddlywiki.files @@ -25,7 +25,7 @@ "module-type": "library" }, "prefix": "(function(document) {\n", - "suffix": "\n})($tw.node ? $tw.fakeDocument : window.document)\n" + "suffix": "\n})(!$tw.browser ? $tw.fakeDocument : window.document)\n" } ] }