Files
sunscope/assets/js/main.js
T
fraxle e18e128a34 Beta5
New code structure
Added profiles
Fixed skin pulldown
Added rain images
2026-05-13 15:16:45 +01:00

18 lines
1.1 KiB
JavaScript

// ════════════════════════════════════════════════════════════════════════
// main.js — Entry point. Imports the app and mounts it into the page.
//
// This is the file loaded by index.html as <script type="module">.
// It does nothing except wire the root component to the DOM node.
//
// If nothing appears on the page, check that:
// 1. index.html contains <div id="root"></div>
// 2. index.html loads THIS file as <script type="module" src="...">
// 3. The browser console (F12) shows no import errors
// ════════════════════════════════════════════════════════════════════════
import { h, render } from '../vendor/preact.js';
import { UTCIForecast } from './app.js';
const rootEl = document.getElementById('root');
if (rootEl) render(h(UTCIForecast, null), rootEl);