X-Git-Url: https://git.r.bdr.sh/rbdr/heart/blobdiff_plain/910278aad4a0b47dc40112839a18bc8e590302e5..aab4b2e7f48c73ec0a0ba2f609748c24b7e84fdc:/js/app.js?ds=inline diff --git a/js/app.js b/js/app.js index 25d581d..12065b2 100644 --- a/js/app.js +++ b/js/app.js @@ -14,6 +14,8 @@ heartRenderer.render(mainElement); heartRenderer.activate(); + window.addEventListener('resize', heartRenderer.resize.bind(heartRenderer)); + /** * Exported global object. This will contain the instance of the heart * renderer being used. It is set up on load.