Skip to content

Commit f76da0f

Browse files
committed
Server now emits <meta> tags for mobile PWA
1 parent 55e3bf6 commit f76da0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/Run.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ namespace Moduless
161161
{
162162
return [
163163
"<!DOCTYPE html>",
164+
`<meta charset="UTF-8">`,
165+
`<meta name="apple-mobile-web-app-capable" content="yes">`,
166+
`<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">`,
167+
`<meta name="apple-mobile-web-app-title" content="Moduless">`,
168+
`<meta name="viewport" content="initial-scale=1, minimum-scale=1, maximum-scale=1, viewport-fit=cover, width=device-width">`,
164169
...outFiles.map(f => `<script src="${f.slice(charIndex)}"></script>`),
165170
runScript
166171
].join("\n");

0 commit comments

Comments
 (0)