Node.js based forum software built for the modern web
moving meta:css.compiled further down, currently it gets emitted twice
psychobunnyfa8613d09dcb
diff --git a/src/meta/css.js b/src/meta/css.jsindex c6ddfd876d..e11ebb3089 100644--- a/src/meta/css.js+++ b/src/meta/css.js@@ -74,6 +74,8 @@ module.exports = function(Meta) {});}+ emitter.emit('meta:css.compiled');+if (typeof callback === 'function') {callback();}@@ -134,7 +136,6 @@ module.exports = function(Meta) {Meta.css.hash = hash;winston.info('[meta/css] Done.');- emitter.emit('meta:css.compiled');// Save the compiled CSS in public/ so things like nginx can serve itif (!cluster.isWorker || process.env.cluster_setup === 'true') {