Set process.throwDeprecation as early as possible

This commit is contained in:
Kevin Sawicki 2015-12-15 17:02:33 -08:00
parent 5fb5526b06
commit d863fd5c6c

View file

@ -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');