// Removed in Electron 13 BrowserWindow.addExtension(path) BrowserWindow.addDevToolsExtension(path) // Replace with session.defaultSession.loadExtension(path)
1 2 3 4 5
// Removed in Electron 13 BrowserWindow.removeExtension(name) BrowserWindow.removeDevToolsExtension(name) // Replace with session.defaultSession.removeExtension(extension_id)
1 2 3 4 5
// Removed in Electron 13 BrowserWindow.getExtensions() BrowserWindow.getDevToolsExtensions() // Replace with session.defaultSession.getAllExtensions()
12.0
crashReporter
Removed: crashReporter.getCrashesDirectory()
The crashReporter.getCrashesDirectory method has been removed. Usage should be replaced by app.getPath('crashDumps').
1 2 3 4
// Removed in Electron 12 crashReporter.getCrashesDirectory() // Replace with app.getPath('crashDumps')
9.0
<webview>.getWebContents()
This API, which was deprecated in Electron 8.0, is now removed.
1 2 3 4 5
// Removed in Electron 9.0 webview.getWebContents() // Replace with const { remote } = require('electron') remote.webContents.fromId(webview.getWebContentsId())