forge icon indicating copy to clipboard operation
forge copied to clipboard

fix: avoid using native Node.js modules in the Electron renderer process.

Open Thulof opened this issue 10 months ago • 0 comments

The current code mistakenly identifies the Electron renderer process as a Node.js environment. However, per Electron’s security best practices, the renderer process disables direct access to Node.js native modules (e.g., the crypto module) by default. This issue causes exceptions when using the node-forge library in the Electron renderer process (as reported in #1010 )

fix #1010 fix #602

Thulof avatar Mar 01 '25 10:03 Thulof