only use personal mode in web3

pull/1/head
yann300 6 years ago
parent 43540307b3
commit fb3e8273f5
  1. 4
      src/universal-dapp.js

@ -33,7 +33,7 @@ module.exports = class UniversalDApp extends UdappApi {
executionContext.detectNetwork(cb)
},
personalMode: () => {
return this._deps.config.get('settings/personal-mode')
return executionContext.getProvider() === 'web3' ? this._deps.config.get('settings/personal-mode') : false
}
}
this.txRunner = new TxRunner({}, this._txRunnerAPI)
@ -67,7 +67,7 @@ module.exports = class UniversalDApp extends UdappApi {
executionContext.detectNetwork(cb)
},
personalMode: () => {
return this._deps.config.get('settings/personal-mode')
return executionContext.getProvider() === 'web3' ? this._deps.config.get('settings/personal-mode') : false
}
})
this.txRunner.event.register('transactionBroadcasted', (txhash) => {

Loading…
Cancel
Save