From a0e7e624a5e81ce0dcd3a91ea4c783ffc2b75be3 Mon Sep 17 00:00:00 2001 From: David Guilherme Date: Wed, 22 Apr 2015 21:10:10 +0000 Subject: [PATCH] Fix window size --- app/main.js | 8 ++++---- app/window.html | 2 +- background.js | 2 -- 3 files changed, 5 insertions(+), 7 deletions(-) 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