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/share/Requests.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'assets/src/components/share/Requests.svelte')

diff --git a/assets/src/components/share/Requests.svelte b/assets/src/components/share/Requests.svelte
index 509d7be..98596c6 100644
--- a/assets/src/components/share/Requests.svelte
+++ b/assets/src/components/share/Requests.svelte
@@ -1,10 +1,11 @@
 <script lang="ts">
-    import { getOwnToken, start, Type } from "../../network/channel/connection";
+    import { getOwnToken, start } from "../../network/channel/connection";
+    import { startShare } from "../../network/channel/share";
 
     import requests from "../../stores/requests";
     import Request from "./Request.svelte";
 
-    const startPromise = start(Type.SHARE);
+    const startPromise = start().then(startShare);
 
     // TODO: Switch to store-based state updates.
 </script>
-- 
cgit 1.4.1

