Node.js based forum software built for the modern web
fixing issue with routes that don't have (or need) a corresponding api_method case from crashing due to 404. (issue #53)
Julian Lam5eda18e03c55
diff --git a/public/src/templates.js b/public/src/templates.jsindex 418018dded..92fb9f10ab 100644--- a/public/src/templates.js+++ b/public/src/templates.js@@ -161,6 +161,9 @@template_data = data;parse_template();+ }).fail(function(data) {+ template_data = {};+ parse_template();});}());diff --git a/src/webserver.js b/src/webserver.jsindex 6cc54ec353..f2425fa4d5 100644--- a/src/webserver.js+++ b/src/webserver.js@@ -158,7 +158,6 @@ var express = require('express'),var category_url = cid + (req.params.slug ? '/' + req.params.slug : '');categories.getCategoryById(cid, 0, function(returnData) {-res.send(app.build_header(res) +'\n\t<noscript>\n' + templates['noscript/header'] + templates['noscript/category'].parse(returnData) + '\n\t</noscript>' +