viewport meta for less terrible mobile experience
This commit is contained in:
parent
487022ce15
commit
2cf3964118
1 changed files with 1 additions and 1 deletions
2
shit.mjs
2
shit.mjs
|
|
@ -10,7 +10,7 @@ createServer(async (request, response) => {
|
|||
response.writeHead(200, {
|
||||
'content-type': 'text/html',
|
||||
}).end(
|
||||
`<pre style="white-space:pre-wrap;text-indent:4ch hanging each-line">${
|
||||
`<meta name=viewport content="width=device-width,initial-scale=1"><pre style="white-space:pre-wrap;text-indent:4ch hanging each-line">${
|
||||
(await readFile('a.txt', {flag: 'a+', encoding: 'utf8'}))
|
||||
// ugh, fine, i'll html escape it. no xss for you
|
||||
.replace(/[<>&'"]/g, match => ({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue