Skip to content

[Bug] [Electron] Can't enable blocking in multiple sessions #5347

@KaKi87

Description

@KaKi87

Hi,

The enableBlockingInSession method works fine when only having only one Session instance to enable blocking in, but when having multiple, the following error is thrown :

Error: Attempted to register a second handler for '@ghostery/adblocker/inject-cosmetic-filters'
    at IpcMainImpl.handle (node:electron/js2c/browser_init:2:109431)
    at BlockingContext.enable (node_modules/@ghostery/adblocker-electron/dist/commonjs/index.js:95:21)
    at ElectronBlocker.enableBlockingInSession (node_modules/@ghostery/adblocker-electron/dist/commonjs/index.js:237:17)

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions