Commit fb3e8273 authored by yann300's avatar yann300

only use personal mode in web3

parent 43540307
...@@ -33,7 +33,7 @@ module.exports = class UniversalDApp extends UdappApi { ...@@ -33,7 +33,7 @@ module.exports = class UniversalDApp extends UdappApi {
executionContext.detectNetwork(cb) executionContext.detectNetwork(cb)
}, },
personalMode: () => { 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) this.txRunner = new TxRunner({}, this._txRunnerAPI)
...@@ -67,7 +67,7 @@ module.exports = class UniversalDApp extends UdappApi { ...@@ -67,7 +67,7 @@ module.exports = class UniversalDApp extends UdappApi {
executionContext.detectNetwork(cb) executionContext.detectNetwork(cb)
}, },
personalMode: () => { 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) => { this.txRunner.event.register('transactionBroadcasted', (txhash) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment