summaryrefslogtreecommitdiff
path: root/src/web/app/mobile/script.ts
blob: 74dfe3dfe8f657dee34f3db25f1cdd4ed5f7c2a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * Mobile Client
 */

// Style
import './style.styl';

require('./tags');
import init from '../init';
import route from './router';
import MiOS from '../common/mios';

/**
 * init
 */
init((mios: MiOS) => {
	// http://qiita.com/junya/items/3ff380878f26ca447f85
	document.body.setAttribute('ontouchstart', '');

	// Start routing
	route(mios);
});