pomodoro/client/app.jsx
Linus Miller 47ce0a2a33 Huge commit
- Update all deps
 - Apply midwest changes
 - Convert all templates to JSX
 - Preact instead of Marko
 - Babel & Eslint
2016-11-10 14:34:44 +01:00

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'));