Merge pull request #15 from Choubakawa/master

Add doctype
This commit is contained in:
Techno Tim 2021-08-21 18:15:18 -05:00 committed by GitHub
commit 5752b5ccc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.js
View File

@ -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;