Always serve the client manifest file

This commit is contained in:
Slava Kim
2014-07-24 16:02:37 -07:00
parent fd67786c9e
commit 13c0d3e0ed

View File

@@ -375,6 +375,17 @@ var runWebAppServer = function () {
return;
}
// XXX think of a better name
if (pathname === "/cordova_manifest.json") {
res.writeHead(200, {
'Content-type': 'application/json; charset=UTF-8',
'Access-Control-Allow-Origin': '*'
});
res.write(JSON.stringify(WebApp.clientProgram.manifest));
res.end();
return;
}
var serveStaticJs = function (s) {
res.writeHead(200, {
'Content-type': 'application/javascript; charset=UTF-8'