From 1e2971cea060c5c599b42b5dfbfd6199435a08ff Mon Sep 17 00:00:00 2001 From: Nystik <236107-Nystik@users.noreply.gitlab.com> Date: Thu, 12 Mar 2026 22:41:13 +0100 Subject: [PATCH] shim safestorage --- shims/electron/index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/shims/electron/index.js b/shims/electron/index.js index 03b28db..4eea863 100644 --- a/shims/electron/index.js +++ b/shims/electron/index.js @@ -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 "";