fix(open) open <a> on browser only if target=_blank (#437)

merging because CI is borked
This commit is contained in:
Lucas Fernandes Nogueira
2020-02-19 10:34:03 -03:00
committed by GitHub
parent 09680ed6de
commit da5f654332

View File

@@ -449,7 +449,7 @@ function __openLinks () {
var target = e.target
while (target != null) {
if (target.matches ? target.matches('a') : target.msMatchesSelector('a')) {
if (target.href && target.href.startsWith('http')) {
if (target.href && target.href.startsWith('http') && target.target === '_blank') {
window.tauri.open(target.href)
}
break