TiddlyWiki on node -webkit does not display content

I followed the tutorial (in the Getting Started section) on how to use TiddlyWiki with node -webkit. When I run nw.exe, it does not display anything.

Im on windows (64 bit) and installed a 32-bit version for windows. Not sure what I am doing wrong or if this is just a mistake.

I also tried adding index.html and package.json to the archive (called app.nw) and running it with nw.exe, but still no luck.

+4
source share
2 answers

. TiddlyWiki 5.0.13-, Windows 64 , node -webkit 0.9.2. , sjcl.js. sjcl.js TiddlyWiki.

TiddlyDesktop. node -webkit TiddlyWiki. Windows. : https://github.com/Jermolene/TiddlyDesktop/releases

, node -webkit , TiddlyDesktop.

+2

bootprefix.js. bootprefix, , node, , node JS. TiddlyWiki bootprefix.js, script TiddlyWiki.

// Detect platforms
$tw.browser = typeof(window) !== "undefined" ? {} : null;
$tw.node = typeof(process) === "object" ? {} : null;
$tw.nodeWebKit = $tw.node && global.window && global.window.nwDispatcher ? {} : null;

if($tw.nodeWebKit) $tw.node = null; //this is the line to add.
0

Source: https://habr.com/ru/post/1546569/


All Articles