mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: remove unused BrowserWindow.fromDevToolsWebContents (#19090)
This commit is contained in:
committed by
John Kleinschmidt
parent
8782d06ed6
commit
d1292833e9
@@ -127,15 +127,6 @@ BrowserWindow.fromBrowserView = (browserView) => {
|
||||
return null
|
||||
}
|
||||
|
||||
BrowserWindow.fromDevToolsWebContents = (webContents) => {
|
||||
for (const window of BrowserWindow.getAllWindows()) {
|
||||
const { devToolsWebContents } = window
|
||||
if (devToolsWebContents != null && devToolsWebContents.equal(webContents)) {
|
||||
return window
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Helpers.
|
||||
Object.assign(BrowserWindow.prototype, {
|
||||
loadURL (...args) {
|
||||
|
||||
Reference in New Issue
Block a user