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

Commit

Permalink
fix: 3id/ipfs conflicts with 3id-connect fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zachferland committed May 28, 2020
1 parent 5341310 commit a7a1d24
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion iframe/html/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const template = (data,isMobile) => `
</p>
</div>
</div>
<div class='${style.actions}' id=''>
<div class='${style.actions}' id='action'>
<button id='accept' class='${style.primaryButton}' ${data.error ? 'style="display:none;"' : ''} >
Continue
</button>
Expand Down
7 changes: 4 additions & 3 deletions src/threeIdConnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ class ThreeIdConnect {
document.body.appendChild(this.iframe)
}

// Just passing ref to threeId and address during migration
async connect (provider, ThreeId) {
// Just passing ref to threeId and ipfs during migration
async connect (provider, ThreeId, ipfs) {
// assumes eth provider during migration
this.provider = provider
this.ThreeId = ThreeId
this.ipfs = ipfs
// after migration, can detect different provdier to create authProvider
this.authProvider = new EthereumAuthProvider(provider)
}
Expand Down Expand Up @@ -84,7 +85,7 @@ class ThreeIdConnect {
*/
async _getThreeId (address) {
if(!this._threeId) {
this._threeId = await this.ThreeId.getIdFromEthAddress(address, this.provider, fakeIpfs, undefined, {})
this._threeId = await this.ThreeId.getIdFromEthAddress(address, this.provider, this.ipfs, undefined, {})
}
return this._threeId
}
Expand Down

0 comments on commit a7a1d24

Please sign in to comment.