Fix bag static HTML to show emoji correctly

This commit is contained in:
Jeremy Ruston 2024-02-23 17:47:00 +00:00
parent 066e553f84
commit b1edbed6a5
1 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,13 @@ exports.handler = function(request,response,state) {
response.writeHead(200, "OK",{
"Content-Type": "text/html"
});
response.write(`
<!doctype html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
</head>
<body>
`);
// Render the html
var html = $tw.mws.store.adminWiki.renderTiddler("text/html","$:/plugins/tiddlywiki/multiwikiserver/templates/get-bags",{
variables: {
@ -40,6 +47,9 @@ exports.handler = function(request,response,state) {
}
});
response.write(html);
response.write(`
</body>
`);
response.end();;
}
} else {