summaryrefslogtreecommitdiff
path: root/src/web/app/stats/script.js
blob: 75063501bb7a87949ab62051ad88736e0671e114 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * Stats
 */

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

import * as riot from 'riot';
require('./tags');
import init from '../init';

document.title = 'Misskey Statistics';

/**
 * init
 */
init(me => {
	mount(document.createElement('mk-index'));
});

function mount(content) {
	riot.mount(document.getElementById('app').appendChild(content));
}