diff options
Diffstat (limited to 'src/bootstrap.js')
| -rw-r--r-- | src/bootstrap.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/bootstrap.js b/src/bootstrap.js new file mode 100644 index 0000000..4b073bc --- /dev/null +++ b/src/bootstrap.js @@ -0,0 +1,18 @@ +import './styles.css'; +import { createApp } from './app/create-app.js'; + +const root = document.getElementById('app'); + +if (!root) { + throw new Error('App root not found'); +} + +createApp(root).catch((error) => { + console.error('Failed to start TimePlot', error); + root.innerHTML = ` + <div style="padding: 24px; color: #fff; font-family: sans-serif;"> + <h1>TimePlot failed to start</h1> + <pre>${String(error)}</pre> + </div> + `; +}); |
