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,
|
webFrame,
|
||||||
remote: remoteShim,
|
remote: remoteShim,
|
||||||
|
|
||||||
|
safeStorage: {
|
||||||
|
isEncryptionAvailable() {
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
encryptString(plainText) {
|
||||||
|
return Buffer.from(plainText);
|
||||||
|
},
|
||||||
|
decryptString(encrypted) {
|
||||||
|
return encrypted.toString();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
webUtils: {
|
webUtils: {
|
||||||
getPathForFile(file) {
|
getPathForFile(file) {
|
||||||
return "";
|
return "";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue