From bbd00cf2d606af32474e9f8402471dd10a4bcd87 Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Thu, 27 Nov 2014 18:05:17 -0300 Subject: [PATCH] Creating a chrome app --- browser-extensions/chrome/initial.js | 8 ++++++++ browser-extensions/chrome/manifest.json | 15 ++++++--------- browser-extensions/include | 1 + initial.js | 8 ++++++++ 4 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 browser-extensions/chrome/initial.js create mode 100644 initial.js diff --git a/browser-extensions/chrome/initial.js b/browser-extensions/chrome/initial.js new file mode 100644 index 000000000..fc12301b5 --- /dev/null +++ b/browser-extensions/chrome/initial.js @@ -0,0 +1,8 @@ +chrome.app.runtime.onLaunched.addListener(function() { + chrome.app.window.create('index.html', { + 'bounds': { + 'width': 1200, + 'height': 800 + } + }); +}); diff --git a/browser-extensions/chrome/manifest.json b/browser-extensions/chrome/manifest.json index 7b8e6517f..55b3ea479 100644 --- a/browser-extensions/chrome/manifest.json +++ b/browser-extensions/chrome/manifest.json @@ -3,17 +3,14 @@ "name": "Copay", "description": "A multisignature bitcoin wallet", "version": "APP_VERSION", - "homepage_url": "http://bitpay.github.io/copay", - "browser_action": { - "default_title": "Copay", - "default_icon": "img/icons/icon.png", - "default_popup": "popup.html" - }, - "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", "permissions": [ - "tabs", "storage", "notifications" + "storage", "notifications" ], - "options_page": "index.html#/settings", + "app": { + "background": { + "scripts": ["initial.js"] + } + }, "icons": { "128": "img/icons/icon.png" } diff --git a/browser-extensions/include b/browser-extensions/include index 346645ba0..f4860b28b 100644 --- a/browser-extensions/include +++ b/browser-extensions/include @@ -6,6 +6,7 @@ sound views config.js init.js +initial.js version.js index.html popup.html diff --git a/initial.js b/initial.js new file mode 100644 index 000000000..5af877804 --- /dev/null +++ b/initial.js @@ -0,0 +1,8 @@ +chrome.app.runtime.onLaunched.addListener(function() { + chrome.app.window.create('index.html', { + 'bounds': { + 'width': 1280, + 'height': 800 + } + }); +});