From cacbfe742826cf6a369854193ae9c6c5d0c02778 Mon Sep 17 00:00:00 2001 From: Fractal-Tess Date: Wed, 24 Jan 2024 04:06:49 +0200 Subject: [PATCH] use body as target --- index.html | 5 ++--- src/App.svelte | 24 +++++++++++++----------- src/main.ts | 17 +++++++++-------- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/index.html b/index.html index 499bdf5..e88144b 100644 --- a/index.html +++ b/index.html @@ -1,12 +1,11 @@ - + Svelte-Tauri - -
+ diff --git a/src/App.svelte b/src/App.svelte index ffdc090..22a20ab 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -1,14 +1,16 @@ - - - + + + +
+
+
+ +
+
diff --git a/src/main.ts b/src/main.ts index 8efb4f7..53f6a0e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,15 +1,16 @@ -import './styles.pcss'; -import App from './App.svelte'; +import './styles.postcss' +import App from './App.svelte' -const target = document.getElementById('app'); -if (!target) +const target = document.getElementById('app') +if (!target) { throw new Error( - "The element with id of 'app' wasn't found on the base html file." - ); + "The element with id of 'app' was not found on the base html file. Create that element and try again" + ) +} const app = new App({ target, intro: true -}); +}) -export default app; +export default app