Bug fix: remove query for canvas before it exits

This commit is contained in:
Tyler Hallada 2018-03-30 23:38:18 -04:00
parent 98d9c90324
commit 6a0513e989

View File

@ -876,9 +876,7 @@ window.PIXI.loader
.load(loopStart);
window.addEventListener('load', function () {
var canvas, tweeningInputs, debugCheckbox, fpsCheckbox, nodeCheckbox, linesCheckbox;
canvas = document.getElementsByTagName('canvas')[0];
canvas.setAttribute('tabindex', 0);
var tweeningInputs, debugCheckbox, fpsCheckbox, nodeCheckbox, linesCheckbox;
tweeningInputs = document.getElementsByName('tweening');
debugCheckbox = document.getElementsByName('debugToggle')[0];
fpsCheckbox = document.getElementsByName('fpsCounterToggle')[0];