Hi Aiden > I created a global shortcut that creates a new tiddler from a template. It > works, except that I get this error: > > Uncaught TypeError: Cannot read property 'indexOf' of null > > I'm expecting to create a ton of tiddlers with the shortcut, so closing the > error every time defeats the purpose. What would be the fix for the error?
I’m sorry you ran into problems. It’s worth reiterating a couple of points about the “Red Screen of Embarrassment”: * The RSOE indicates an uncaught JavaScript error. As such, every time it happens, it qualifies as a bug. Ideally, end users shouldn’t be able to trigger the RSOE unless they are hacking JavaScript * It’s generally worth reporting RSOEs if you do encounter them. As ever with bug reporting, it’s helpful to have a minimal test case that makes it simple to replicate the problem * When an RSOE does occur it is strongly recommended that you DO NOT close the message and carry on. There’s a good chance that the JS error might have caused internal corruption. It’s best to dismiss the message, copy any unsaved data via the clipboard, and then refresh the page In this case, the problem is that the navigator widget does not cope with a missing “story” attribute. I’ve added a fix here: https://github.com/Jermolene/TiddlyWiki5/commit/8159c4a8655c4c565baf6078074d1a791b5b81e5 <https://github.com/Jermolene/TiddlyWiki5/commit/8159c4a8655c4c565baf6078074d1a791b5b81e5> Best wishes Jeremy -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2B58C9D3-8017-4D9C-9CE8-F8FC21D9A018%40gmail.com.

