mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2024-11-26 06:05:34 +01:00
commit
5752b5ccc6
2
app.js
2
app.js
@ -11,7 +11,7 @@ fs.readFile('./template/index.html', 'utf8', (err, file) => {
|
||||
}
|
||||
const { JSDOM } = jsdom
|
||||
const dom = new JSDOM(file);
|
||||
const html = useEnv(dom.window.document).documentElement.outerHTML;
|
||||
const html = "<!DOCTYPE html>\n" + useEnv(dom.window.document).documentElement.outerHTML;
|
||||
fs.writeFile('./www/index.html', html, 'utf8', (err) => {
|
||||
if (err) {
|
||||
throw err;
|
||||
|
Loading…
Reference in New Issue
Block a user