heartRenderer.render(mainElement);
heartRenderer.activate();
+ window.addEventListener('resize', heartRenderer.resize.bind(heartRenderer));
+ window.addEventListener('blur', heartRenderer.stopFollowingMouse.bind(heartRenderer));
+ window.addEventListener('focus', heartRenderer.startFollowingMouse.bind(heartRenderer));
+
/**
* Exported global object. This will contain the instance of the heart
* renderer being used. It is set up on load.