Browse Source

Fixed error in contact .js where the template context was not passed to function

pull/46/head
jrtechs 5 years ago
parent
commit
de5593e5c4
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      blog/contact.js

+ 1
- 2
blog/contact.js View File

@ -204,10 +204,9 @@ module.exports =
{
result.writeHead(200, {'Content-Type': 'text/html'});
console.log("eh");
var templateContext = Object();
Promise.all([includes.fetchTemplate(TEMPLATE_FILE),
processContactPage(request),
processContactPage(request, templateContext),
includes.printHeader(templateContext),
includes.printFooter(templateContext),
require("./sidebar.js").main(templateContext)])

Loading…
Cancel
Save