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 + } + }); +});