mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
web - add mock manifest to prevent error
This commit is contained in:
@@ -62,6 +62,17 @@ const server = http.createServer((req, res) => {
|
||||
// favicon
|
||||
return serveFile(req, res, path.join(APP_ROOT, 'resources', 'win32', 'code.ico'));
|
||||
}
|
||||
if (pathname === '/manifest.json') {
|
||||
// manifest
|
||||
res.writeHead(200, { 'Content-Type': 'application/json' });
|
||||
return res.end(JSON.stringify({
|
||||
"name": "Code Web - OSS",
|
||||
"short_name": "Code Web - OSS",
|
||||
"start_url": "/",
|
||||
"lang": "en-US",
|
||||
"display": "standalone"
|
||||
}));
|
||||
}
|
||||
if (/^\/static\//.test(pathname)) {
|
||||
// static requests
|
||||
return handleStatic(req, res, parsedUrl);
|
||||
|
||||
Reference in New Issue
Block a user