Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload keystorefile button not works #4

Open
fahimaltinordu opened this issue Dec 3, 2020 · 1 comment
Open

upload keystorefile button not works #4

fahimaltinordu opened this issue Dec 3, 2020 · 1 comment

Comments

@fahimaltinordu
Copy link

fahimaltinordu commented Dec 3, 2020

Hi @hunterlong, i need your help please, the upload keystore file button not works for me. I got the following error at DevTools. Actually it works for storj wallet, probably i did something wrong but i cannot fix this.

my repo: https://github.com/PlusBitPos/c-wallet


Uncaught Reference Error: Cannot access 'dialog' before initialization at OpenKeystoreFile (main.js:246) at HTMLButtonElement.onclick (index.html:198)

------------------------------main.js:246
var keyFile;
function OpenKeystoreFile() {
dialog.showOpenDialogSync(function(fileNames) {
if (fileNames === undefined) return;
keyFile = fileNames[0];
console.log(keyFile);
});
}
----------------------------index.html:198
Open Keystore File

@fahimaltinordu
Copy link
Author

backing to old version of packages solved the issue for now, the following versions works but i think i need a good solution with current versions.

"devDependencies": {
"electron": "~1.6.2",
"electron-builder": "^19.11.1"
},
"dependencies": {
"clipboardy": "^1.1.4",
"ethers": "^2.1.1"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant