From c4c532955c3f67f63f1d1e40ff965a96ac890500 Mon Sep 17 00:00:00 2001 From: Lucas Soriano del Pino Date: Fri, 8 Oct 2021 11:43:39 +1100 Subject: [PATCH] Give each app a different name --- frontend/index.html | 1 - frontend/src/MakerApp.tsx | 2 ++ frontend/src/TakerApp.tsx | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index f1f149a..3066105 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,7 +4,6 @@ - Hermes
diff --git a/frontend/src/MakerApp.tsx b/frontend/src/MakerApp.tsx index 0b0c676..c9f9698 100644 --- a/frontend/src/MakerApp.tsx +++ b/frontend/src/MakerApp.tsx @@ -31,6 +31,8 @@ import { CfdSellOrderPayload, postCfdSellOrderRequest } from "./MakerClient"; const SPREAD = 1.01; export default function App() { + document.title = "Hermes Maker"; + let source = useEventSource({ source: "/api/feed", options: { withCredentials: true } }); const cfdsOrUndefined = useLatestEvent(source, "cfds", intoCfd); diff --git a/frontend/src/TakerApp.tsx b/frontend/src/TakerApp.tsx index 303ae8d..e5ae509 100644 --- a/frontend/src/TakerApp.tsx +++ b/frontend/src/TakerApp.tsx @@ -58,6 +58,8 @@ async function getMargin(payload: MarginRequestPayload): Promise } export default function App() { + document.title = "Hermes Taker"; + let source = useEventSource({ source: "/api/feed" }); const cfdsOrUndefined = useLatestEvent(source, "cfds", intoCfd);