Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/v1.1.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
mi-xu committed May 1, 2019
2 parents c9a5e34 + f6b669f commit 92fa51f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uport-connect",
"version": "1.1.10",
"version": "1.1.11",
"description": "Library for integrating uPort into your app frontend",
"main": "lib/index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/Connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Connect {
* @param {String} [opts.description] A short description of your app that can be displayed to users when making requests
* @param {String} [opts.profileImage] A URL for an image to be displayed as the avatar for this app in requests
* @param {String} [opts.bannerImage] A URL for an image to be displayed as the banner for this app in requests
* @param {String} [opts.brandColor] A HEX brand color to be be displayed where branding is required '#000000'
* @param {Object} [opts.network='rinkeby'] network config object or string name, ie. { id: '0x1', rpcUrl: 'https://mainnet.infura.io' } or 'kovan', 'mainnet', 'ropsten', 'rinkeby'.
* @param {String} [opts.accountType] Ethereum account type: "general", "segregated", "keypair", or "none"
* @param {Boolean} [opts.isMobile] Configured by default by detecting client, but can optionally pass boolean to indicate whether this is instantiated on a mobile client
Expand All @@ -44,6 +45,7 @@ class Connect {
this.description = opts.description
this.profileImage = opts.profileImage
this.bannerImage = opts.bannerImage
this.brandColor = opts.brandColor
this.network = network.config.network(opts.network)
this.accountType = opts.accountType === 'none' ? undefined : opts.accountType
this.isOnMobile = opts.isMobile === undefined ? isMobile() : opts.isMobile
Expand Down Expand Up @@ -571,6 +573,7 @@ class Connect {
url: (typeof window !== 'undefined') ? `${window.location.protocol}//${window.location.host}` : undefined,
profileImage: this.profileImage,
bannerImage: this.bannerImage,
brandColor: this.brandColor,
}

// Upload to ipfs
Expand Down

0 comments on commit 92fa51f

Please sign in to comment.