diff --git a/pkg/app/browser.go b/pkg/app/browser.go index bdcb2438..e49b7f34 100644 --- a/pkg/app/browser.go +++ b/pkg/app/browser.go @@ -1,6 +1,8 @@ package app -import "time" +import ( + "time" +) type browser struct { AppUpdatable bool @@ -43,6 +45,11 @@ func (b *browser) handleAnchorClick(ctx Context) { return } + switch target.Get("target").String() { + case "_blank": + return + } + event.PreventDefault() if href := target.Get("href"); href.Truthy() { ctx.Navigate(target.Get("href").String())