Creating a chrome app

This commit is contained in:
Matias Pando 2014-11-27 18:05:17 -03:00
parent 5490440631
commit bbd00cf2d6
4 changed files with 23 additions and 9 deletions

View File

@ -0,0 +1,8 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'bounds': {
'width': 1200,
'height': 800
}
});
});

View File

@ -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"
}

View File

@ -6,6 +6,7 @@ sound
views
config.js
init.js
initial.js
version.js
index.html
popup.html

8
initial.js Normal file
View File

@ -0,0 +1,8 @@
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'bounds': {
'width': 1280,
'height': 800
}
});
});