Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
Update ipcCommunicator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
suijiaza committed Jun 19, 2018
1 parent 1a2bfd9 commit a7dd696
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions modules/ipcCommunicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,21 +137,23 @@ ipc.on('backendAction_checkWalletFile', (e, path) => {

log.debug(`Importing ${type} account...`);

if (type === 'ethersale') {
e.sender.send('uiAction_checkedWalletFile', null, 'presale');
} else if (type === 'web3') {
//if (type === 'ethersale') {
// e.sender.send('uiAction_checkedWalletFile', null, 'presale');
//} else if (type === 'web3') {
if (true) {
e.sender.send('uiAction_checkedWalletFile', null, 'web3');

let keystorePath = Settings.userHomePath;
// eth
if (ethereumNode.isEth) {
if (process.platform === 'win32') {
keystorePath = `${Settings.appDataPath}\\Web3\\keys`;
} else {
keystorePath += '/.web3/keys';
}
//if (ethereumNode.isEth) {
// if (process.platform === 'win32') {
// keystorePath = `${Settings.appDataPath}\\Web3\\keys`;
// } else {
// keystorePath += '/.web3/keys';
// }
// geth
} else {
//} else {
if (true) {
if (process.platform === 'darwin')
keystorePath += '/Library/Ether1/keystore';

Expand Down

0 comments on commit a7dd696

Please sign in to comment.