fix: 🐛 don't add TOS URL to info menu if it doesn't exist
This commit is contained in:
parent
b7e9ec6341
commit
7acb5ebde9
@ -24,14 +24,14 @@ export function openHelpMenu_(ev: MouseEvent) {
|
|||||||
icon: "ph-lightbulb ph-bold ph-lg",
|
icon: "ph-lightbulb ph-bold ph-lg",
|
||||||
to: "/about-firefish",
|
to: "/about-firefish",
|
||||||
},
|
},
|
||||||
{
|
instance.tosUrl ? {
|
||||||
type: "button",
|
type: "button",
|
||||||
text: i18n.ts.tos,
|
text: i18n.ts.tos,
|
||||||
icon: "ph-scroll ph-bold ph-lg",
|
icon: "ph-scroll ph-bold ph-lg",
|
||||||
action: () => {
|
action: () => {
|
||||||
window.open(instance.tosUrl, "_blank");
|
window.open(instance.tosUrl, "_blank");
|
||||||
},
|
},
|
||||||
},
|
} : null,
|
||||||
{
|
{
|
||||||
type: "button",
|
type: "button",
|
||||||
text: i18n.ts.apps,
|
text: i18n.ts.apps,
|
||||||
|
Loading…
Reference in New Issue
Block a user