git ssb

16+

Dominic / patchbay



Commit 305ee7215bd7c6886901aa12488342f4a7c91193

open http links in external app (probably web browser)

Dominic Tarr committed on 5/25/2016, 1:22:41 AM
Parent: 15c8b380dff5fefb550257e46b87876bda2db1e4

Files changed

modules/tabs.jschanged
modules/tabs.jsView
@@ -28,13 +28,18 @@
2828 var link = ancestor(ev.target)
2929 if(!link) return
3030 var path = link.hash.substring(1)
3131
32+ console.log(link)
33+
3234 ev.preventDefault()
3335 ev.stopPropagation()
3436
37+ if(!path)
38+ return require('shell').openExternal(link.href)
39+
3540 if(tabs.has(path)) return tabs.select(path)
36-
41+
3742 var el = screen(path)
3843 if(el) tabs.add(path, el, !ev.ctrlKey)
3944
4045 }

Built with git-ssb-web