diff --git a/lib/commands/definitions.ts b/lib/commands/definitions.ts index 0c3f1c4..80fb535 100644 --- a/lib/commands/definitions.ts +++ b/lib/commands/definitions.ts @@ -225,12 +225,9 @@ const exitCmd: Command = { window.opener = null; window.open("", "_self"); window.close(); + window.history.back(); } - return [ - "If you can read this, closing the window did not work.", - "This is most likely because of a restriction in JavaScript.", - "#{Read more here|https://developer.mozilla.org/en-US/docs/Web/API/Window/close}." - ]; + return []; } }; diff --git a/pages/terminal.tsx b/pages/terminal.tsx index 4e938c4..1f08b8e 100644 --- a/pages/terminal.tsx +++ b/pages/terminal.tsx @@ -1,8 +1,8 @@ import type { NextPage, GetStaticProps } from "next"; import Head from "next/head"; +import Link from "next/link"; import Icon from "@mdi/react"; import { mdiEmail } from "@mdi/js"; -import { Discord, Github, Instagram, Steam, Linkedin } from "@icons-pack/react-simple-icons"; import { useEffect, useRef,useCallback } from "react"; import { useCommands } from "../lib/commands/ContextProvider"; import { useModalFunctions } from "../components/Terminal/contexts/ModalFunctions"; @@ -64,6 +64,8 @@ const Terminal: NextPage<{ buildTime: string }> = ({ buildTime }) => {