![]() I was actually able to get the save function working through my preload.js by adding in a save function that can utilize 'fs'. 5 years, 4 months ago This is good information I am working on an Electron version of TiddlyDesktop as a personal project to learn Javascript, node, and electron. That may actually meet my needs better because it allows me to inject some js as a preload to the page- allowing me to retain some tiddlywiki control (I think). Aside that, I like to be able to have my wikis available loaded. ![]() That said, TiddlyDesktop isnt perfect, because it cannot handle TiddlyWiki folders well (which I control with daily git), but I use a regular browser there. If you have JavaScripts on your site that are not working you can. I found another way as well using the webView tag for a local HTML file. TiddlyDesktop has few browser restrictions removed because it is made using a framework to develop web desktop applications. Each browser has a built in Error Console for diagnosing scripting errors on your site. ![]() 5 years, 4 months ago This actually works perfectly for what I asked. Thanks in advance for the help.ĥ years, 4 months ago Related Topics javascript node.js electron tiddlywiki tiddlywiki5 Comments 5 years, 4 months ago What is failing is the tiddlywiki code on the website: (/:27506) After looking at the lines referenced in the stack trace, it looks like tiddlywiki fails at identifying the browser it is launched in and thus assumes it was launched from the command line. I assume this is because of some integration of the node.js object model? Sorry for the lack of understanding. Uncaught TypeError: Cannot read property 'length' of undefinedĪt Object.$tw.boot.startup (/:27506)Īt Object.$tw.cryptEncryptedTiddlers (/:27053)Īt Object.$tw.boot.boot (/:27763) When the electron app launches I get the following error in the browser dev tools. Here is some sample code (I did not use local file in this one, but the result is the same): const ) The local file has some complex embedded javascript (tiddlywiki). I am just trying to write a simple app that opens a local HTML file in a browser window. I am very new to node, javascript, and electron.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |