From 9f201d624a90c0a41f39ef00594c2e5388828750 Mon Sep 17 00:00:00 2001 From: Jason Healy Date: Thu, 25 Apr 2019 12:44:00 +0100 Subject: [PATCH 1/2] Add brandColor param --- src/Connect.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Connect.js b/src/Connect.js index 8fd44db9..320db284 100644 --- a/src/Connect.js +++ b/src/Connect.js @@ -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 @@ -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 @@ -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 From f6b669f0db6b9cd8be93a867a01bb956c2e973ab Mon Sep 17 00:00:00 2001 From: Mike Xu Date: Wed, 1 May 2019 14:34:27 -0400 Subject: [PATCH 2/2] bump version to 1.1.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1940b5d7..972929f2 100644 --- a/package.json +++ b/package.json @@ -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": {