From e422bd577acd50e63db74192d94a7ec9cfd8076f Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Mon, 25 Feb 2013 17:40:29 +0100 Subject: [PATCH] chrome 25 compatibility --- chromesoul.js | 10 +++++----- manifest.json | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) 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"]}