wipwipwip

This commit is contained in:
2025-05-12 19:54:09 +01:00
parent 3eab20049e
commit 636bd9df0e
6 changed files with 14 additions and 39 deletions

View File

@@ -26,8 +26,8 @@
"icons/icon.icns",
"icons/icon.ico"
],
"macOS": {
"signingIdentity": "6F3F957C06DE870B9A9F2CA8C2E762C6752AB2CB"
}
"macOS": {
"signingIdentity": "6F3F957C06DE870B9A9F2CA8C2E762C6752AB2CB"
}
}
}

View File

@@ -20,7 +20,8 @@ type BaseRequestParams = Partial<{
method: "GET" | "POST";
}>;
export const base = "https://haystack.johncosta.tech";
// export const base = "https://haystack.johncosta.tech";
export const base = "http://192.168.1.199:3040";
const getBaseRequest = ({ path, body, method }: BaseRequestParams): Request => {
return new Request(`${base}/${path}`, {

View File

@@ -83,6 +83,10 @@ export const Notifications = (onCompleteImage: () => void) => {
events.addEventListener("data", dataEventListener);
events.onerror = (e) => {
console.error(e);
};
onCleanup(() => {
events.removeEventListener("data", dataEventListener);
events.close();