shim safestorage
This commit is contained in:
parent
12af8ae010
commit
1e2971cea0
1 changed files with 12 additions and 0 deletions
|
|
@ -7,6 +7,18 @@ export const electronShim = {
|
|||
webFrame,
|
||||
remote: remoteShim,
|
||||
|
||||
safeStorage: {
|
||||
isEncryptionAvailable() {
|
||||
return false;
|
||||
},
|
||||
encryptString(plainText) {
|
||||
return Buffer.from(plainText);
|
||||
},
|
||||
decryptString(encrypted) {
|
||||
return encrypted.toString();
|
||||
},
|
||||
},
|
||||
|
||||
webUtils: {
|
||||
getPathForFile(file) {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue