Creating a chrome app
This commit is contained in:
parent
5490440631
commit
bbd00cf2d6
4 changed files with 23 additions and 9 deletions
8
browser-extensions/chrome/initial.js
Normal file
8
browser-extensions/chrome/initial.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
chrome.app.runtime.onLaunched.addListener(function() {
|
||||||
|
chrome.app.window.create('index.html', {
|
||||||
|
'bounds': {
|
||||||
|
'width': 1200,
|
||||||
|
'height': 800
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
@ -3,17 +3,14 @@
|
||||||
"name": "Copay",
|
"name": "Copay",
|
||||||
"description": "A multisignature bitcoin wallet",
|
"description": "A multisignature bitcoin wallet",
|
||||||
"version": "APP_VERSION",
|
"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": [
|
"permissions": [
|
||||||
"tabs", "storage", "notifications"
|
"storage", "notifications"
|
||||||
],
|
],
|
||||||
"options_page": "index.html#/settings",
|
"app": {
|
||||||
|
"background": {
|
||||||
|
"scripts": ["initial.js"]
|
||||||
|
}
|
||||||
|
},
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "img/icons/icon.png"
|
"128": "img/icons/icon.png"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ sound
|
||||||
views
|
views
|
||||||
config.js
|
config.js
|
||||||
init.js
|
init.js
|
||||||
|
initial.js
|
||||||
version.js
|
version.js
|
||||||
index.html
|
index.html
|
||||||
popup.html
|
popup.html
|
||||||
|
|
|
||||||
8
initial.js
Normal file
8
initial.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
chrome.app.runtime.onLaunched.addListener(function() {
|
||||||
|
chrome.app.window.create('index.html', {
|
||||||
|
'bounds': {
|
||||||
|
'width': 1280,
|
||||||
|
'height': 800
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
Loading…
Add table
Add a link
Reference in a new issue