mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: lint code blocks in docs with ESLint (#42113)
This commit is contained in:
@@ -189,7 +189,9 @@ Be very cautious about which globals and APIs you expose to untrusted remote con
|
||||
|
||||
```js
|
||||
const { contextBridge } = require('electron')
|
||||
|
||||
const crypto = require('node:crypto')
|
||||
|
||||
contextBridge.exposeInMainWorld('nodeCrypto', {
|
||||
sha256sum (data) {
|
||||
const hash = crypto.createHash('sha256')
|
||||
|
||||
Reference in New Issue
Block a user