|
@@ -165,14 +165,6 @@ for (const method of webFrameMethodsWithResult) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const nativeOpenDevTools = WebContents.prototype.openDevTools
|
|
|
-WebContents.prototype.openDevTools = function (params) {
|
|
|
- if (!process.noDeprecations && params && 'detach' in params) {
|
|
|
- deprecate.warn('webContents.openDevTools({detach: true})', `webContents.openDevTools({mode: 'detach'})`)
|
|
|
- }
|
|
|
- return nativeOpenDevTools.call(this, params)
|
|
|
-}
|
|
|
-
|
|
|
// Make sure WebContents::executeJavaScript would run the code only when the
|
|
|
// WebContents has been loaded.
|
|
|
WebContents.prototype.executeJavaScript = function (code, hasUserGesture, callback) {
|