shim safestorage

This commit is contained in:
Nystik
2026-03-12 22:41:13 +01:00
parent 12af8ae010
commit 1e2971cea0

View File

@@ -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 "";