refactor: piggy-back on ELECTRON_BROWSER_SANDBOX_LOAD to get content scripts (#18823)
This commit is contained in:
parent
450aa33775
commit
edb56500c7
6 changed files with 17 additions and 12 deletions
5
typings/internal-electron.d.ts
vendored
5
typings/internal-electron.d.ts
vendored
|
@ -47,6 +47,11 @@ declare namespace Electron {
|
|||
allFrames: boolean
|
||||
}
|
||||
|
||||
type ContentScriptEntry = {
|
||||
extensionId: string;
|
||||
contentScripts: ContentScript[];
|
||||
}
|
||||
|
||||
interface IpcRendererInternal extends Electron.IpcRenderer {
|
||||
sendToAll(webContentsId: number, channel: string, ...args: any[]): void
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue