travel news and handling the view
This commit is contained in:
parent
2bca74520d
commit
c105c28050
@ -9,7 +9,7 @@ const trainCache = {
|
||||
'data': {}
|
||||
};
|
||||
|
||||
logger.level = 'debug';
|
||||
// logger.level = 'debug';
|
||||
|
||||
function getTrainTimes(req, res) {
|
||||
// console.log(req);
|
||||
|
@ -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();
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user