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",
},
{
type: "link",
type: "button",
text: i18n.ts.tos,
icon: "ph-scroll ph-bold ph-lg",
to: instance.tosUrl,
action: () => {
window.open(instance.tosUrl, "_blank");
},
},
{
type: "button",