Set process.throwDeprecation as early as possible
This commit is contained in:
parent
5fb5526b06
commit
d863fd5c6c
1 changed files with 3 additions and 3 deletions
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in a new issue