From 199f7c731886bd8e8ac0d28bd15ebec241255594 Mon Sep 17 00:00:00 2001
From: julian laplace <julescarbon@gmail.com>
Date: Tue, 9 May 2023 17:44:31 +0200
Subject: rendering dots

---
 src/index.jsx | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

(limited to 'src/index.jsx')

diff --git a/src/index.jsx b/src/index.jsx
index b41c7da..cc5b7a2 100644
--- a/src/index.jsx
+++ b/src/index.jsx
@@ -8,9 +8,19 @@ document.body.style.backgroundColor = "#111";
 document.body.style.color = "#fff";
 document.body.style.margin = 0;
 document.body.style.padding = 0;
+document.body.style.height = "100%";
+document.body.style.width = "100%";
+document.body.parentNode.style.margin = 0;
+document.body.parentNode.style.padding = 0;
+document.body.parentNode.style.height = "100%";
+document.body.parentNode.style.width = "100%";
 
 requestAudioContext(() => {
-  document.body.innerHTML = '<div id="app"></div>';
-  const root = createRoot(document.getElementById("app"));
+  const container = document.createElement("div");
+  container.style.height = "100%";
+  container.style.width = "100%";
+  document.body.innerHTML = "";
+  document.body.appendChild(container);
+  const root = createRoot(container);
   root.render(<App />);
 });
-- 
cgit v1.2.3-70-g09d2

