import fonts from './utilities/fonts';
import touch from './utilities/enableTouch';
import Module from './components/Index.jsx';
import { h, render } from 'preact'; // eslint-disable-line no-unused-vars
import 'svgxuse';

if ('visibilityState' in document) {
  fonts(); // load fonts
  touch(); // handle no-touch class

  // Render my PREACT App
  render(<Module isOffline={false} />, document.querySelector('body'));
}
