'use strict';

var m = require('mithril');
var attachFastClick = require('fastclick');
var GameComponent = require('./components/game');

m.mount(document.getElementById('app'), GameComponent);
attachFastClick(document.body);

// Load service worker to enable offline access
if ('serviceWorker' in navigator) {
  navigator.serviceWorker.register('service-worker.js');
}

'use strict';

var m = require('mithril');
var attachFastClick = require('fastclick');
var GameComponent = require('./components/game');

m.mount(document.getElementById('app'), GameComponent);
attachFastClick(document.body);

// Load service worker to enable offline access
if (navigator.serviceWorker) {
  navigator.serviceWorker.register('service-worker.js');
}

Use property access instead of 'in' to detect SW