8 lines
311 B
JavaScript
8 lines
311 B
JavaScript
// Dashboard page — called by the router each time this route is activated.
|
|
// Export init(main) to run logic after the HTML fragment is injected.
|
|
//
|
|
// `main` is the <main> DOM element containing the injected HTML.
|
|
|
|
export function init(main) {
|
|
// Page is ready — add event listeners, fetch data, etc.
|
|
}
|