Use const

This commit is contained in:
Jessica Lord 2016-01-14 13:18:52 -08:00
parent 9103253f62
commit 3a0fb42737
10 changed files with 55 additions and 83 deletions

View file

@ -1,15 +1,13 @@
var app, logAndThrow, protocol;
app = require('electron').app;
const app = require('electron').app;
if (!app.isReady()) {
throw new Error('Can not initialize protocol module before app is ready');
}
protocol = process.atomBinding('protocol').protocol;
const protocol = process.atomBinding('protocol').protocol;
// Warn about removed APIs.
logAndThrow = function(callback, message) {
var logAndThrow = function(callback, message) {
console.error(message);
if (callback) {
return callback(new Error(message));