Fix eslint errors

This commit is contained in:
Kyle Mathews 2016-02-20 12:31:34 -08:00
parent f856fe0060
commit d0552c19b2
10 changed files with 179 additions and 139 deletions

17
app.js
View file

@ -1,11 +1,10 @@
exports.loadContext = function(callback) {
var context;
context = require.context('./pages', true);
exports.loadContext = function (callback) {
let context = require.context('./pages', true)
if (module.hot) {
module.hot.accept(context.id, function() {
context = require.context('./pages', true);
return callback(context);
});
module.hot.accept(context.id, () => {
context = require.context('./pages', true)
return callback(context)
})
}
return callback(context);
};
return callback(context)
}