From 417d73f77102c23e9955f6852c953fdff6727655 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 23 May 2023 18:23:06 -0700 Subject: [PATCH] make tosUrl open action in case it's external --- packages/client/src/scripts/helpMenu.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/client/src/scripts/helpMenu.ts b/packages/client/src/scripts/helpMenu.ts index 6c6d09966..7e33c220b 100644 --- a/packages/client/src/scripts/helpMenu.ts +++ b/packages/client/src/scripts/helpMenu.ts @@ -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",