diff --git a/src/components/container/index.tsx b/src/components/container/index.tsx index 96ca25b..d659462 100644 --- a/src/components/container/index.tsx +++ b/src/components/container/index.tsx @@ -2,8 +2,6 @@ import { useState } from 'preact/hooks'; import Heart from '../heart'; -const api = "lanyard.creations.works" - const statusMap = { online: "border-success-subtle", idle: "border-warning-subtle", @@ -14,7 +12,7 @@ const statusMap = { export default () => { const [status, setStatus] = useState('offline'); - fetch(`https://${api}/v1/users/1273447359417942128`) + fetch("https://lanyard.creations.works/v1/users/1273447359417942128") .then(req => req.json()) .then((res) => { if (res.data.discord_status) { diff --git a/src/components/navbar/index.tsx b/src/components/navbar/index.tsx index b9d3f24..2b4b667 100644 --- a/src/components/navbar/index.tsx +++ b/src/components/navbar/index.tsx @@ -1,4 +1,9 @@ -import { Minus, Minimize2, X } from 'lucide-preact'; +import { Minus, Minimize, X } from 'lucide-preact'; + +const close = () => { + window.close(); + window.history.back(); +} export default () => { return ( @@ -13,9 +18,9 @@ export default () => { IPv4 dot Army