Added favicon
This commit is contained in:
parent
5ec0a152f5
commit
1cc58051bb
|
@ -354,6 +354,11 @@ ProgressiveLoaderGeometry.prototype.initIOCallbacks = function() {
|
||||||
|
|
||||||
this.socket.on('disconnect', function() {
|
this.socket.on('disconnect', function() {
|
||||||
console.log('Finished !');
|
console.log('Finished !');
|
||||||
|
setTimeout(function() {
|
||||||
|
self.meshes.forEach(function(obj) {
|
||||||
|
obj.geometry.computeBoundingSphere();
|
||||||
|
});
|
||||||
|
}, 0);
|
||||||
self.finished = true;
|
self.finished = true;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
"cookie-parser": "1.3.4",
|
"cookie-parser": "1.3.4",
|
||||||
"cookie-session": "1.1.0",
|
"cookie-session": "1.1.0",
|
||||||
"socket.io": "1.3.5",
|
"socket.io": "1.3.5",
|
||||||
"sleep": "2.0.0"
|
"sleep": "2.0.0",
|
||||||
|
"serve-favicon": "2.3.0"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -3,6 +3,8 @@ var express = require('express');
|
||||||
var jade = require('jade');
|
var jade = require('jade');
|
||||||
var pg = require('pg');
|
var pg = require('pg');
|
||||||
|
|
||||||
|
var favicon = require('serve-favicon');
|
||||||
|
|
||||||
// secret variables
|
// secret variables
|
||||||
var secret = require('./private');
|
var secret = require('./private');
|
||||||
|
|
||||||
|
@ -65,6 +67,9 @@ require('./lib/posts')(app, { verbose: isDev });
|
||||||
// Static files
|
// Static files
|
||||||
app.use('/static', express.static('static'));
|
app.use('/static', express.static('static'));
|
||||||
|
|
||||||
|
// Favicon
|
||||||
|
app.use(favicon(__dirname + '/static/ico/favicon.ico'));
|
||||||
|
|
||||||
// When error raised
|
// When error raised
|
||||||
app.use(function(err, req, res, next) {
|
app.use(function(err, req, res, next) {
|
||||||
if (err.status === 404) {
|
if (err.status === 404) {
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue