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': {} 'data': {}
}; };
logger.level = 'debug'; // logger.level = 'debug';
function getTrainTimes(req, res) { function getTrainTimes(req, res) {
// console.log(req); // console.log(req);

View File

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