make tosUrl open action in case it's external

This commit is contained in:
ThatOneCalculator 2023-05-23 18:23:06 -07:00
parent 3d27929a41
commit e8ab73562b
No known key found for this signature in database
GPG Key ID: 8703CACD01000000

View File

@ -25,10 +25,12 @@ export function openHelpMenu_(ev: MouseEvent) {
to: "/about-calckey", to: "/about-calckey",
}, },
{ {
type: "link", type: "button",
text: i18n.ts.tos, text: i18n.ts.tos,
icon: "ph-scroll ph-bold ph-lg", icon: "ph-scroll ph-bold ph-lg",
to: instance.tosUrl, action: () => {
window.open(instance.tosUrl, "_blank");
},
}, },
{ {
type: "button", type: "button",