Links in commands

This commit is contained in:
2021-12-26 15:37:08 +01:00
parent ee500ebeea
commit 651646f19e
3 changed files with 53 additions and 4 deletions

View File

@ -180,7 +180,7 @@ const project: Command = {
const exitCmd: Command = {
name: "exit",
desc: "Tries to close this tab. Mostly fails because of restrictions.",
desc: "Tries to close this tab.",
execute: () => {
if (typeof window !== undefined) {
window.opener = null;
@ -189,8 +189,8 @@ const exitCmd: Command = {
}
return [
"If you can read this, closing the window did not work.",
"This is because of restriction in JavaScript.",
"Read more here: https://developer.mozilla.org/en-US/docs/Web/API/Window/close"
"This is most likely because of a restriction in JavaScript.",
"#{Read more here|https://developer.mozilla.org/en-US/docs/Web/API/Window/close}."
]
}
}