// Helper to trap wikilinks within a window
function trapLinks(doc) {
doc.addEventListener("click",function(event) {
// See if we're in an interwiki link
var interwikiLink = findParentWithClass(event.target,"tw-interwiki-link");
if(interwikiLink) {
openWikiIfNotOpen(interwikiLink.href);
event.preventDefault();
event.stopPropagation();
return false;
}
// See if we're in an external link
var externalLink = findParentWithClass(event.target,"tw-tiddlylink-external");
if(externalLink) {
gui.Shell.openExternal(externalLink.getAttribute("href"));
event.preventDefault();
event.stopPropagation();
return false;
}
return true;
},false);
}I am guessing i have to edit this portion of the main.js:
Using tiddlydesktop-win-0.0.3. Is the 0.0.4 stable enough as a daily driver?
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/411005ae-776e-40f5-a228-7f26cc24c05d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I wanted to open the external links to open in the system default browser.
That is good news on the 0.0.4 part. I was concerned with the release notes.Thanks,Christian