mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Set process.throwDeprecation as early as possible
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// Disable use of deprecated functions.
|
||||
process.throwDeprecation = true;
|
||||
|
||||
const electron = require('electron');
|
||||
const app = electron.app;
|
||||
const ipcMain = electron.ipcMain;
|
||||
const dialog = electron.dialog;
|
||||
const BrowserWindow = electron.BrowserWindow;
|
||||
|
||||
// Disable use of deprecated functions.
|
||||
process.throwDeprecation = true;
|
||||
|
||||
const path = require('path');
|
||||
const url = require('url');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user