register extension handler for every session created
This commit is contained in:
parent
ebff40b5a5
commit
cb5e648502
2 changed files with 9 additions and 5 deletions
|
@ -280,10 +280,12 @@ app.once('ready', function () {
|
|||
}
|
||||
})
|
||||
}
|
||||
protocol.registerBufferProtocol('chrome-extension', chromeExtensionHandler, function (error) {
|
||||
if (error) {
|
||||
console.error(`Unable to register chrome-extension protocol: ${error}`)
|
||||
}
|
||||
process.on('session-created', function (session) {
|
||||
session.protocol.registerBufferProtocol('chrome-extension', chromeExtensionHandler, function (error) {
|
||||
if (error) {
|
||||
console.error(`Unable to register chrome-extension protocol: ${error}`)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// Load persisted extensions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue