diff --git a/packages/adblocker-electron/adblocker.ts b/packages/adblocker-electron/adblocker.ts index 83464b5a26..b873a0b7bf 100644 --- a/packages/adblocker-electron/adblocker.ts +++ b/packages/adblocker-electron/adblocker.ts @@ -53,7 +53,7 @@ export class ElectronBlocker extends FiltersEngine { if (this.config.loadCosmeticFilters === true) { ipcMain.on('get-cosmetic-filters', this.onGetCosmeticFilters); - ses.setPreloads([join(__dirname, './preload.js')]); + ses.setPreloads(ses.getPreloads().concat([join(__dirname, './preload.js')])); ipcMain.on('is-mutation-observer-enabled', (event: Electron.IpcMainEvent) => { event.returnValue = this.config.enableMutationObserver; });