travel news and handling the view

This commit is contained in:
Martin Donnelly 2017-12-29 16:06:56 +00:00
parent 2bca74520d
commit c105c28050
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ const trainCache = {
'data': {}
};
logger.level = 'debug';
// logger.level = 'debug';
function getTrainTimes(req, res) {
// console.log(req);

View File

@ -62,7 +62,7 @@ const { RouteModel, RouteView } = require('./route');
console.log(modalView);
const html = modalView.render().el;
$('.app').html(html);
let $modalContent = $('#modalContent');
const $modalContent = $('#modalContent');
$modalContent.html(d.d);
}, this);
@ -78,12 +78,12 @@ const { RouteModel, RouteView } = require('./route');
}
};
/* if ('serviceWorker' in navigator)
if ('serviceWorker' in navigator)
navigator.serviceWorker
.register('./service-worker.js')
.then(function() {
console.log('Service Worker Registered');
});*/
});
app.createViews();
})();