Skip to content

Commit bca733d

Browse files
authored
Allow app-name configuration to change the name of the PWA (#6093)
1 parent 78282a1 commit bca733d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/node/routes/vscode.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,16 @@ export class CodeServerRouteWrapper {
4040
//#region Route Handlers
4141

4242
private manifest: express.Handler = async (req, res, next) => {
43+
const appName = req.args["app-name"] || "code-server"
4344
res.writeHead(200, { "Content-Type": "application/manifest+json" })
4445

4546
return res.end(
4647
replaceTemplates(
4748
req,
4849
JSON.stringify(
4950
{
50-
name: "code-server",
51-
short_name: "code-server",
51+
name: appName,
52+
short_name: appName,
5253
start_url: ".",
5354
display: "fullscreen",
5455
description: "Run Code on a remote server.",

0 commit comments

Comments
 (0)