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 electron = require('electron');
|
||||||
const app = electron.app;
|
const app = electron.app;
|
||||||
const ipcMain = electron.ipcMain;
|
const ipcMain = electron.ipcMain;
|
||||||
const dialog = electron.dialog;
|
const dialog = electron.dialog;
|
||||||
const BrowserWindow = electron.BrowserWindow;
|
const BrowserWindow = electron.BrowserWindow;
|
||||||
|
|
||||||
// Disable use of deprecated functions.
|
|
||||||
process.throwDeprecation = true;
|
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const url = require('url');
|
const url = require('url');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue