From d863fd5c6ccd1ced0fefcbee54b9ae6eb36a9a78 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 15 Dec 2015 17:02:33 -0800 Subject: [PATCH] Set process.throwDeprecation as early as possible --- spec/static/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/static/main.js b/spec/static/main.js index 35ae544..b295ba1 100644 --- a/spec/static/main.js +++ b/spec/static/main.js @@ -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'); -- 2.7.4