Fix rendering of HTML template file

This commit is contained in:
Jeff Parsons 2014-11-11 08:38:12 -08:00 committed by jeffpar
commit 21035001b2
2 changed files with 5 additions and 2 deletions

View file

@ -738,8 +738,11 @@ HTMLOut.prototype.setData = function(err, sData, sFile, fTemplate)
/*
* Copy the HTML template, and then start finding/replacing tokens.
*
* We cheat slightly and insert one of those tokens right now, because otherwise
* the template file itself would not render correctly in your web browser.
*/
this.sTemplate = sData;
this.sTemplate = sData.replace("/modules/shared/templates/common.css", "/versions/pcjs/<!-- pcjs:version -->/common.css");
this.sHTML = this.sTemplate;
/*

View file

@ -10,7 +10,7 @@
when rotating to landscape mode; by setting only "initial-scale", the width is apparently inferred -->
<meta name="viewport" content="initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/versions/images/current/favicon.ico">
<link rel="stylesheet" type="text/css" href="/versions/pcjs/<!-- pcjs:version -->/common.css">
<link rel="stylesheet" type="text/css" href="/modules/shared/templates/common.css">
<!-- pcjs:sockets -->
</head>
<body>