diff --git a/lib/browser/api/web-contents.ts b/lib/browser/api/web-contents.ts index 594c2fc28e65..6433bed4df56 100644 --- a/lib/browser/api/web-contents.ts +++ b/lib/browser/api/web-contents.ts @@ -124,13 +124,6 @@ WebContents.prototype.sendToFrame = function (frameId, channel, ...args) { return true; }; -WebContents.prototype._sendToFrameInternal = function (frameId, channel, ...args) { - const frame = getWebFrame(this, frameId); - if (!frame) return false; - frame._sendInternal(channel, ...args); - return true; -}; - // Following methods are mapped to webFrame. const webFrameMethods = [ 'insertCSS', diff --git a/typings/internal-electron.d.ts b/typings/internal-electron.d.ts index 2d286f23d5cc..7789f297e55e 100644 --- a/typings/internal-electron.d.ts +++ b/typings/internal-electron.d.ts @@ -66,7 +66,6 @@ declare namespace Electron { _callWindowOpenHandler(event: any, details: Electron.HandlerDetails): {browserWindowConstructorOptions: Electron.BrowserWindowConstructorOptions | null, outlivesOpener: boolean}; _setNextChildWebPreferences(prefs: Partial & Pick): void; _send(internal: boolean, channel: string, args: any): boolean; - _sendToFrameInternal(frameId: number | [number, number], channel: string, ...args: any[]): boolean; _sendInternal(channel: string, ...args: any[]): void; _printToPDF(options: any): Promise; _print(options: any, callback?: (success: boolean, failureReason: string) => void): void;