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

- +
diff --git a/background.js b/background.js index 35cdbbc..33c1d8c 100644 --- a/background.js +++ b/background.js @@ -15,8 +15,6 @@ chrome.contextMenus.onClicked.addListener( function () { url: "app/window.html", top: 10, left: 10, - width: 500, - height: 500, type: "popup" }, function (w) { popup = w; -- libgit2 0.21.2