Permalink
Browse files

fixed a timing bug

  • Loading branch information...
edsu authored and Edsu committed Feb 10, 2017
1 parent 1640a04 commit 9561eb6684b0f50c6e70be19441aaea9e9f32611
Showing with 1 addition and 3 deletions.
  1. +0 −2 app.js
  2. +1 −1 public/js/app.js
View
2 app.js
@@ -67,9 +67,7 @@ app.get('/commons-image/:page', function (req, res){
path: path
};
http.get(opts, function (response) {
- //res.header('Content-Type', 'application/json');
response.on('data', function (chunk) {
- res.setHeader('Cache-Control', 'public, max-age=1000')
res.write(chunk);
});
response.on('end', function () {
View
@@ -37,7 +37,7 @@ function init() {
}
function getNumUpdates() {
- var panelHeight = $(window).height() - $('#updatePanel').offset().top - 40;
+ var panelHeight = $(window).height() - $('#updatePanel').offset().top + 50;
$('#updatePanel').height(panelHeight);
numUpdates = Math.floor(panelHeight / 25);
console.log('keep track of ' + numUpdates + ' updates');

0 comments on commit 9561eb6

Please sign in to comment.