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,7 +1,6 @@
var NavigationController, ipcMain,
slice = [].slice;
const ipcMain = require('electron').ipcMain;
ipcMain = require('electron').ipcMain;
var slice = [].slice;
// The history operation in renderer is redirected to browser.
ipcMain.on('ATOM_SHELL_NAVIGATION_CONTROLLER', function() {
@ -21,7 +20,7 @@ ipcMain.on('ATOM_SHELL_SYNC_NAVIGATION_CONTROLLER', function() {
// control on user land, and only rely on WebContents.loadURL for navigation.
// This helps us avoid Chromium's various optimizations so we can ensure renderer
// process is restarted everytime.
NavigationController = (function() {
var NavigationController = (function() {
function NavigationController(webContents) {
this.webContents = webContents;
this.clearHistory();