mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
make tosUrl open action in case it's external
This commit is contained in:
parent
0f52dc317e
commit
417d73f771
1 changed files with 4 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue