From 84a19203c57190dbffa7ab33ac33b3624ae8975a Mon Sep 17 00:00:00 2001
From: AAGaming <aa@mail.catvibers.me>
Date: Sat, 13 Aug 2022 11:57:52 -0400
Subject: fix injecting twice

---
 frontend/src/index.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'frontend/src/index.tsx')

diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx
index 3df18093..0347388c 100644
--- a/frontend/src/index.tsx
+++ b/frontend/src/index.tsx
@@ -14,6 +14,7 @@ declare global {
   }
 }
 (async () => {
+  window.deckyHasLoaded = true;
   await sleep(1000);
   window.deckyAuthToken = await fetch('http://127.0.0.1:1337/auth/token').then((r) => r.text());
 
@@ -38,6 +39,4 @@ declare global {
   };
 
   setTimeout(() => window.syncDeckyPlugins(), 5000);
-
-  window.deckyHasLoaded = true;
 })();
-- 
cgit v1.2.3

