diff --git a/js/src/api/api.js b/js/src/api/api.js index 526ecbf1b..0b6e444c8 100644 --- a/js/src/api/api.js +++ b/js/src/api/api.js @@ -23,7 +23,7 @@ import { Db, Eth, Parity, Net, Personal, Shh, Signer, Trace, Web3 } from './rpc' import Subscriptions from './subscriptions'; import util from './util'; import { isFunction } from './util/types'; -import { LocalAccountsMiddleware } from './local'; +// import { LocalAccountsMiddleware } from './local'; export default class Api extends EventEmitter { constructor (transport, allowSubscriptions = true) { @@ -54,9 +54,9 @@ export default class Api extends EventEmitter { const middleware = this.parity .nodeKind() .then((nodeKind) => { - if (nodeKind.availability === 'public') { - return LocalAccountsMiddleware; - } + // if (nodeKind.availability === 'public') { + // return LocalAccountsMiddleware; + // } return null; }) diff --git a/js/webpack/npm.js b/js/webpack/npm.js index 34b91467b..f1b3640d8 100644 --- a/js/webpack/npm.js +++ b/js/webpack/npm.js @@ -73,7 +73,9 @@ module.exports = { resolve: { alias: { - '~': path.resolve(__dirname, '../src') + '~': path.resolve(__dirname, '../src'), + 'secp256k1': path.resolve(__dirname, '../node_modules/secp256k1/js'), + 'keythereum': path.resolve(__dirname, '../node_modules/keythereum/dist/keythereum') }, modules: [ path.resolve('./src'),