mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(open) open <a> on browser only if target=_blank (#437)
merging because CI is borked
This commit is contained in:
committed by
GitHub
parent
09680ed6de
commit
da5f654332
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user