SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
var setCanvasSize = function() { canvas.width = window.innerWidth; canvas.height = window.innerHeight; }