From 5b6e8bd167f176ad4fde01c047eb84295e879b60 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 10 Feb 2016 08:50:42 +0200 Subject: [PATCH] closes #4171 --- src/routes/meta.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/meta.js b/src/routes/meta.js index 5fe767ce21..65757566de 100644 --- a/src/routes/meta.js +++ b/src/routes/meta.js @@ -5,7 +5,8 @@ var meta = require('../meta'), function sendMinifiedJS(req, res, next) { - res.type('text/javascript').send(meta.js.target['nodebb.min.js'].cache); + var cache = meta.js.target['nodebb.min.js'] ? meta.js.target['nodebb.min.js'].cache : ''; + res.type('text/javascript').send(cache); } // The portions of code involving the source map are commented out as they're broken in UglifyJS2