Use const
This commit is contained in:
parent
9103253f62
commit
3a0fb42737
10 changed files with 55 additions and 83 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue