refactor: implement clipboard APIs without the remote module (#17200)
This commit is contained in:
parent
43ef561d48
commit
3a091cdea4
10 changed files with 118 additions and 45 deletions
4
typings/internal-electron.d.ts
vendored
4
typings/internal-electron.d.ts
vendored
|
@ -55,6 +55,10 @@ declare namespace Electron {
|
|||
sendToAll(webContentsId: number, channel: string, ...args: any[]): void
|
||||
}
|
||||
|
||||
interface RemoteInternal extends Electron.Remote {
|
||||
getGuestWebContents(guestInstanceId: number): Electron.WebContents;
|
||||
}
|
||||
|
||||
interface WebContentsInternal extends Electron.WebContents {
|
||||
_sendInternal(channel: string, ...args: any[]): void;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue