Skip to content

Commit b11c553

Browse files
authored
Update security.md (electron#27449)
1 parent 5a8f40a commit b11c553

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorial/security.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ possible through the modules you allow past the filter.
758758
const readOnlyFsProxy = require(/* ... */) // exposes only file read functionality
759759

760760
const allowedModules = new Set(['crypto'])
761-
const proxiedModules = new Map(['fs', readOnlyFsProxy])
761+
const proxiedModules = new Map([['fs', readOnlyFsProxy]])
762762
const allowedElectronModules = new Set(['shell'])
763763
const allowedGlobals = new Set()
764764

0 commit comments

Comments
 (0)