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