mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: remove unused code from our js scripts (#25419)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
process.throwDeprecation = false;
|
||||
|
||||
const electron = require('electron');
|
||||
const { app, BrowserWindow, crashReporter, dialog, ipcMain, protocol, webContents, session } = electron;
|
||||
const { app, BrowserWindow, dialog, ipcMain, protocol, webContents, session } = electron;
|
||||
|
||||
try {
|
||||
require('fs').rmdirSync(app.getPath('userData'), { recursive: true });
|
||||
|
||||
Reference in New Issue
Block a user