mirror of
https://github.com/Nystik-gh/ignis.git
synced 2026-06-17 04:35:53 +00:00
shim safestorage
This commit is contained in:
@@ -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 "";
|
||||||
|
|||||||
Reference in New Issue
Block a user