diff --git a/src/renderer/src/electron/index.js b/src/renderer/src/electron/index.js index afa72cb06..b36779b00 100644 --- a/src/renderer/src/electron/index.js +++ b/src/renderer/src/electron/index.js @@ -14,6 +14,11 @@ export let path = null; export let log = null; export let crypto = null; +// Used in tests +try { + crypto = require("crypto"); +} catch {} + if (isElectron) { try { fs = require("fs-extra"); // File System