From da5f654332948da0098d66734244690204efaf28 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 19 Feb 2020 10:34:03 -0300 Subject: [PATCH] fix(open) open on browser only if target=_blank (#437) merging because CI is borked --- cli/tauri.js/templates/tauri.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tauri.js/templates/tauri.js b/cli/tauri.js/templates/tauri.js index 0568e2f04..eeff0eab7 100644 --- a/cli/tauri.js/templates/tauri.js +++ b/cli/tauri.js/templates/tauri.js @@ -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