mirror of https://github.com/status-im/codimd.git
fixed a bug in response.js:useCdn
This commit is contained in:
parent
a29cc7ceec
commit
7fc7325f87
|
@ -50,7 +50,8 @@ function responseError(res, code, detail, msg) {
|
|||
filename: template,
|
||||
code: code,
|
||||
detail: detail,
|
||||
msg: msg
|
||||
msg: msg,
|
||||
useCDN: config.usecdn
|
||||
});
|
||||
res.write(content);
|
||||
res.end();
|
||||
|
@ -96,7 +97,8 @@ function responseHackMD(res, noteId) {
|
|||
};
|
||||
var compiled = ejs.compile(fs.readFileSync(template, 'utf8'), options);
|
||||
var html = compiled({
|
||||
title: title
|
||||
title: title,
|
||||
useCDN: config.usecdn
|
||||
});
|
||||
var buf = html;
|
||||
res.writeHead(200, {
|
||||
|
@ -190,7 +192,8 @@ function showPublishNote(req, res, next) {
|
|||
viewcount: note.viewcount,
|
||||
updatetime: updatetime,
|
||||
url: origin,
|
||||
body: text
|
||||
body: text,
|
||||
useCDN: config.usecdn
|
||||
});
|
||||
var buf = html;
|
||||
res.writeHead(200, {
|
||||
|
@ -360,4 +363,4 @@ function publishNoteActions(req, res, next) {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = response;
|
||||
module.exports = response;
|
||||
|
|
Loading…
Reference in New Issue