pull/3674/head
filip mertens 4 years ago committed by Aniket
parent e86d7d16d7
commit 68df0a37bf
  1. 5
      src/RemixClient.js

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

Loading…
Cancel
Save