- Update all deps - Apply midwest changes - Convert all templates to JSX - Preact instead of Marko - Babel & Eslint
16 lines
388 B
JavaScript
16 lines
388 B
JavaScript
import { h, render } from 'preact';
|
|
import Layout from './components/Layout.jsx';
|
|
|
|
// request permission on page load
|
|
if (!Notification) {
|
|
alert('Desktop notifications not available in your browser. Try Chromium, Chrome or Firefox.');
|
|
}
|
|
|
|
if (Notification.permission !== 'granted') {
|
|
Notification.requestPermission();
|
|
}
|
|
|
|
render((
|
|
<Layout />
|
|
), null, document.getElementById('app'));
|