From bca733de3dcf6fed17a8b43524d0a071f8a80e23 Mon Sep 17 00:00:00 2001 From: Ahmed El-Sharnoby Date: Wed, 22 Mar 2023 03:02:31 +0200 Subject: [PATCH] Allow app-name configuration to change the name of the PWA (#6093) --- src/node/routes/vscode.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/node/routes/vscode.ts b/src/node/routes/vscode.ts index 1de3e7cec..85337611c 100644 --- a/src/node/routes/vscode.ts +++ b/src/node/routes/vscode.ts @@ -40,6 +40,7 @@ export class CodeServerRouteWrapper { //#region Route Handlers private manifest: express.Handler = async (req, res, next) => { + const appName = req.args["app-name"] || "code-server" res.writeHead(200, { "Content-Type": "application/manifest+json" }) return res.end( @@ -47,8 +48,8 @@ export class CodeServerRouteWrapper { req, JSON.stringify( { - name: "code-server", - short_name: "code-server", + name: appName, + short_name: appName, start_url: ".", display: "fullscreen", description: "Run Code on a remote server.",