How to change the tiddlydesktop behaviour of opening external links?
I am guessing i have to edit this portion of the main.js:
// 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 tried tinkering with it but don't know much about JavaScript to figure it
out.
Using tiddlydesktop-win-0.0.3. Is the 0.0.4 stable enough as a daily driver?
<https://github.com/Jermolene/TiddlyDesktop/releases/download/v0.0.3/tiddlydesktop-win-0.0.3.zip>
Thanks,
Chris
--
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 post to this group, send email to [email protected].
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.