diff --git a/chromesoul.js b/chromesoul.js index 85dc9f3..55f4bf1 100644 --- a/chromesoul.js +++ b/chromesoul.js @@ -14,9 +14,9 @@ // OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // -chrome.app.runtime.onLaunched.addListener(function(intentData) { - //if (window.chrome && window.chrome.app && window.chrome.app.isInstalled) { - if (window.chrome && window.chrome.app) { - window.open("chromesoul.html#0", "bg", "background"); - } +chrome.app.runtime.onLaunched.addListener(function() { + chrome.app.window.create('chromesoul.html', { + 'width': 400, + 'height': 500 + }); }); diff --git a/manifest.json b/manifest.json index c937d2b..5f08c57 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Chromesoul", - "version": "0.4.7", + "version": "0.4.9", "minimum_chrome_version": "24", "manifest_version": 2, "offline_enabled": false, @@ -16,7 +16,6 @@ }, "permissions": [ "http://www.epitech.eu/intra/photos/", - "background", "storage", "notifications", {"socket": ["tcp-connect:ns-server.epita.fr:4242"]}