git ssb

16+

Dominic / patchbay



Commit 968dba2f62d9e537fe3cd9013e6faa8f753e38a2

open.isExternal() gives a false positive for undefined/null

Henry committed on 1/11/2017, 12:22:50 AM
Parent: 33d49d724c13b515841075e0ae6d096034c78275

Files changed

modules_core/tabs.jschanged
modules_core/tabs.jsView
@@ -94,9 +94,9 @@
9494 if (link.getAttribute('href') === '#') return
9595
9696 //open external links.
9797 //this ought to be made into something more runcible
98- if(open.isExternal(link.href)) return api.external_confirm(link.href)
98 + if(link.href && open.isExternal(link.href)) return api.external_confirm(link.href)
9999
100100 if(tabs.has(path))
101101 return tabs.select(path, !ev.ctrlKey, !!ev.shiftKey)
102102

Built with git-ssb-web