From 57aa92bf83ef99b65183508493680bcab6480e32 Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Sat, 19 Aug 2017 13:39:10 -0400 Subject: [PATCH] Fix onload event --- js/proximity.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/proximity.js b/js/proximity.js index 7c95bbf..6b06a6b 100644 --- a/js/proximity.js +++ b/js/proximity.js @@ -875,7 +875,7 @@ window.PIXI.loader .add(nodeImg) .load(loopStart); -window.onload = function () { +window.addEventListener('load', function () { var canvas, tweeningInputs, debugCheckbox, fpsCheckbox, nodeCheckbox, linesCheckbox; canvas = document.getElementsByTagName('canvas')[0]; canvas.setAttribute('tabindex', 0); @@ -1150,4 +1150,4 @@ window.onload = function () { linesCheckbox.addEventListener('change', function (e) { toggleLines(); }); -}; +}, false);