Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
update ipfs manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jun 29, 2017
1 parent 903dee8 commit e6be4bc
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 13 deletions.
30 changes: 19 additions & 11 deletions app/extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,24 +248,32 @@ let generateIPFSManifest = () => {
}

return {
name: 'IPFS Viewer',
description: l10n.translation('ipfsDesc'),
// https://developer.chrome.com/extensions/manifest
// Required
manifest_version: 2,
version: '1.0',
name: 'IPFS',
version: '0.1.0',
// Recommended
default_locale: 'en',
description: l10n.translation('ipfsDesc'),
icons: {
128: 'img/ipfs-128.png',
48: 'img/ipfs-48.png',
16: 'img/ipfs-16.png'
},
// Other
background: {
scripts: [ 'gen/ipfs.entry.js' ]
},
content_security_policy: concatCSP(cspDirectives),
content_scripts: [],
permissions: ['externally_connectable.all_urls', 'tabs', '<all_urls>'],
externally_connectable: {
matches: ['<all_urls>']
},
icons: {
128: 'img/ipfs-128.png',
48: 'img/ipfs-48.png',
16: 'img/ipfs-16.png'
},
incognito: 'split',
// TODO(diasdavid) How to get this key??
key: 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyWl+wMvL0wZX3JUs7GeZAvxMP+LWEh2bwMV1HyuBra/lGZIq3Fmh0+AFnvFPXz1NpQkbLS3QWyqhdIn/lepGwuc2ma0glPzzmieqwctUurMGSGManApGO1MkcbSPhb+R1mx8tMam5+wbme4WoW37PI3oATgOs2NvHYuP60qol3U7b/zB3IWuqtwtqKe2Q1xY17btvPuz148ygWWIHneedt0jwfr6Zp+CSLARB9Heq/jqGXV4dPSVZ5ebBHLQ452iZkHxS6fm4Z+IxjKdYs3HNj/s8xbfEZ2ydnArGdJ0lpSK9jkDGYyUBugq5Qp3FH6zV89WqBvoV1dqUmL9gxbHsQIDAQAB'
incognito: 'split'
// https://developer.chrome.com/apps/manifest/key
// key: ''
}
}

Expand Down
4 changes: 4 additions & 0 deletions js/ipfs/entry.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// const ipc = window.chrome.ipcRenderer

console.log('woot! managed to capture the ipfs:// or dweb:// protocols')

chrome.protocol.registerStringProtocol('ipfs', (request, callback) => {
callback('hi there!') // eslint-disable-line
})
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ var webtorrentPage = {
}
}

var ipfsPage = {
var ipfs = {
name: 'ipfs',
target: 'web',
entry: ['./js/ipfs/entry.js'],
Expand All @@ -177,5 +177,5 @@ module.exports = [
merge(app, envConfig()),
merge(devTools, envConfig()),
merge(webtorrentPage, envConfig()),
merge(ipfsPage, envConfig())
merge(ipfs, envConfig())
]

0 comments on commit e6be4bc

Please sign in to comment.