Links in commands
This commit is contained in:
@ -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}."
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user