Added favicon

This commit is contained in:
Thomas FORGIONE 2015-06-26 10:50:01 +02:00
parent 5ec0a152f5
commit 1cc58051bb
4 changed files with 12 additions and 1 deletions

View File

@ -354,6 +354,11 @@ ProgressiveLoaderGeometry.prototype.initIOCallbacks = function() {
this.socket.on('disconnect', function() {
console.log('Finished !');
setTimeout(function() {
self.meshes.forEach(function(obj) {
obj.geometry.computeBoundingSphere();
});
}, 0);
self.finished = true;
});
}

View File

@ -9,7 +9,8 @@
"cookie-parser": "1.3.4",
"cookie-session": "1.1.0",
"socket.io": "1.3.5",
"sleep": "2.0.0"
"sleep": "2.0.0",
"serve-favicon": "2.3.0"
},
"repository": {
"type": "git",

View File

@ -3,6 +3,8 @@ var express = require('express');
var jade = require('jade');
var pg = require('pg');
var favicon = require('serve-favicon');
// secret variables
var secret = require('./private');
@ -65,6 +67,9 @@ require('./lib/posts')(app, { verbose: isDev });
// Static files
app.use('/static', express.static('static'));
// Favicon
app.use(favicon(__dirname + '/static/ico/favicon.ico'));
// When error raised
app.use(function(err, req, res, next) {
if (err.status === 404) {

BIN
static/ico/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB