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 />
), document.body);
