diff --git a/app/main.js b/app/main.js index 665809c..ef8ace0 100644 --- a/app/main.js +++ b/app/main.js @@ -1,6 +1,6 @@ -(function () { - var $player = document.getElementById('player'); +document.addEventListener("DOMContentLoaded", function(event) { + var $player = document.getElementById('canvas'); $player.width = window.innerWidth; - $player.height = window.innerHeight; -})(); \ No newline at end of file + $player.height = window.innerHeight; +}); \ No newline at end of file diff --git a/app/window.html b/app/window.html index 7f15d51..c776669 100644 --- a/app/window.html +++ b/app/window.html @@ -12,7 +12,7 @@
Unity WebGL Player | VLibrasTest