From 1cc58051bbf449a2632c3b2089feb79b82c2107a Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 26 Jun 2015 10:50:01 +0200 Subject: [PATCH] Added favicon --- js/ProgressiveLoaderGeometry.js | 5 +++++ package.json | 3 ++- server.js | 5 +++++ static/ico/favicon.ico | Bin 0 -> 1150 bytes 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 static/ico/favicon.ico diff --git a/js/ProgressiveLoaderGeometry.js b/js/ProgressiveLoaderGeometry.js index c912473..cb680fb 100644 --- a/js/ProgressiveLoaderGeometry.js +++ b/js/ProgressiveLoaderGeometry.js @@ -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; }); } diff --git a/package.json b/package.json index a7ca26e..5df8f85 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/server.js b/server.js index 41e37b5..1226409 100644 --- a/server.js +++ b/server.js @@ -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) { diff --git a/static/ico/favicon.ico b/static/ico/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..312591b3b6b4d094914cd7fb5f468fbc1af84892 GIT binary patch literal 1150 zcmbW1Uu;uV9LLY*AZ%>X+keomkgnTUVcpuy4d-OkVHlv%xB+I_;>16wIEW$eAOwk# zMBA%t5_nUWbjFBc)?H{(iuX5VFCVQ6W6Gc_IMty3Wy zUQua$J%X=g6ua+pIu3l#??E+Nq%9UNVABiOiF@-rb4bPiW}2sur15uYG#>%4bvVsyrxHAIK%;hV0?+OUO$RkLZoY^RAJNcwkz^v3<;du! zG~L8ky>oclV(fW4O2ex$YIaRg+ZLw&r5L`pc^>V&i`jMtk$Z-7pWe)Zl1UByC~5Yc zRB<%T@JRau{QFZVhWA;${#&Vy%&F9LYS=y9(nAN^c7E`WGlc)tsBW3TRx?EH3o)rV zk6Ag%+Ujd;-jCFd;_Cp{mL5dTiK<1+RSr!iCwVRiq^hSqt!yQ7#MK8~Z} z3Y%VrO`S2kZ3)V@-QuAYM-lmlxH&Mfg#YG7ioD_rd5BZ9H$DE5*|c-y7_ zjwsd7M_9jooC4E%L}52QKTIy+ukm!^JekeucHth9`>!WqRSKZwRRd~U6AJv&+^WBID1KNnhZ9X)OkKU zJ%h-*jiGdsWy)O?M?co`0Sp!QFnPvV*A(PxpT>8CFgC4Q&){`^q#q4;