docs: fix loadExtension example (#36489)
This commit is contained in:
parent
9f007b9afb
commit
e3b7c3024f
1 changed files with 1 additions and 1 deletions
|
@ -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 }) => {
|
||||
// ...
|
||||
})
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue