mirror of
https://github.com/techno-tim/littlelink-server.git
synced 2025-02-17 19:21:29 +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 { JSDOM } = jsdom
|
||||||
const dom = new JSDOM(file);
|
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) => {
|
fs.writeFile('./www/index.html', html, 'utf8', (err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user