travel news and handling the view
This commit is contained in:
parent
2bca74520d
commit
c105c28050
@ -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);
|
||||||
|
@ -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();
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user