docs: fix loadExtension example (#36489)

This commit is contained in:
Jeremy Rose 2022-11-30 11:29:02 -08:00 committed by GitHub
parent 9f007b9afb
commit e3b7c3024f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ work). Extensions are installed per-`session`. To load an extension, call
```js
const { session } = require('electron')
session.loadExtension('path/to/unpacked/extension').then(({ id }) => {
session.defaultSession.loadExtension('path/to/unpacked/extension').then(({ id }) => {
// ...
})
```