aboutsummaryrefslogtreecommitdiff
path: root/devel/electron27/files/patch-electron_spec_fixtures_api_safe-storage_encrypt-app_main.js
blob: 119940f8b89f35c0fc8a3b23341dbd256ac41b8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- electron/spec/fixtures/api/safe-storage/encrypt-app/main.js.orig	2023-08-12 11:45:22 UTC
+++ electron/spec/fixtures/api/safe-storage/encrypt-app/main.js
@@ -6,7 +6,7 @@ const pathToEncryptedString = path.resolve(__dirname, 
 const writeFile = fs.writeFile;
 
 app.whenReady().then(async () => {
-  if (process.platform === 'linux') {
+  if (process.platform === 'linux' || process.platform === 'freebsd') {
     safeStorage.setUsePlainTextEncryption(true);
   }
   const encrypted = safeStorage.encryptString('plaintext');