aboutsummaryrefslogtreecommitdiff
path: root/src_js/main.js
blob: 7dd5e1bcf131c1fb1e852a3a318d3272595cdfd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import r from '@hat-core/renderer';
import * as u from '@hat-core/util';

import * as common from './common';
import * as vt from './vt';

import 'main.scss';


function main() {
    const root = document.body.appendChild(document.createElement('div'));
    r.init(root, common.state, vt.main);
    common.init();
}


window.addEventListener('load', main);
window.r = r;
window.u = u;