forge
forge copied to clipboard
fix: avoid using native Node.js modules in the Electron renderer process.
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