pull/3674/head
filip mertens 4 years ago committed by Aniket
parent 3ce56270f4
commit 464d2cb928
  1. 5
      src/RemixClient.js

@ -28,12 +28,10 @@ export class RemixClient extends PluginClient {
async init() {
const currentTheme = await this.call('theme', 'currentTheme')
console.log('theme', currentTheme)
this.web3Modal.updateTheme(currentTheme.quality)
this.on('theme', 'themeChanged', (theme) => {
this.web3Modal.updateTheme(theme.quality)
console.log('theme', theme)
})
}
@ -43,11 +41,10 @@ export class RemixClient extends PluginClient {
*/
async onConnect() {
console.log("Opening a dialog", this.web3Modal);
try {
this.provider = await this.web3Modal.connect();
} catch (e) {
console.log("Could not get a wallet connection", e);
console.error("Could not get a wallet connection", e);
return;
}

Loading…
Cancel
Save