rename file and do dom element check

This commit is contained in:
Fractal-Tess
2023-05-18 06:50:33 +03:00
parent a6aa193fed
commit 2a8ff18041
2 changed files with 8 additions and 2 deletions

View File

@@ -1,8 +1,14 @@
import './styles.postcss';
import './styles.pcss';
import App from './App.svelte';
const target = document.getElementById('app');
if (!target)
throw new Error(
"The element with id of 'app' wasn't found on the base html file."
);
const app = new App({
target: document.getElementById('app'),
target,
intro: true
});