]>
git.r.bdr.sh - rbdr/heart/blob - js/app.js
25d581d8268fe02446f52cc28d9fda453231c7b5
3 // Sets up the application
9 internals
.onLoad
= () => {
11 const mainElement
= window
.document
.getElementById('heart-app-entry-point');
12 const heartRenderer
= new HeartRenderer();
14 heartRenderer
.render(mainElement
);
15 heartRenderer
.activate();
18 * Exported global object. This will contain the instance of the heart
19 * renderer being used. It is set up on load.
23 * @property {HeartRenderer} heartRenderer The instance of the heart renderer being used.
30 window
.addEventListener('load', internals
.onLoad
);