From b98b1cd0e5d07fd37be54592edd362f443a145ad Mon Sep 17 00:00:00 2001
From: Melonai <einebeere@gmail.com>
Date: Mon, 14 Jun 2021 11:55:03 +0200
Subject: Make connection independent of type

---
 assets/src/components/RequestPage.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'assets/src/components/RequestPage.svelte')

diff --git a/assets/src/components/RequestPage.svelte b/assets/src/components/RequestPage.svelte
index 0c0b111..d73d9c0 100644
--- a/assets/src/components/RequestPage.svelte
+++ b/assets/src/components/RequestPage.svelte
@@ -1,9 +1,10 @@
 <script lang="ts">
-    import { start, Type } from "../network/channel/connection";
+    import { start } from "../network/channel/connection";
+    import { startRequest } from "../network/channel/request";
 
     // TODO: Switch to store-based state updates.
 
-    start(Type.REQUEST);
+    start().then(startRequest);
 </script>
 
 <main>
-- 
cgit 1.4.1

