Fix rendering of HTML template file
This commit is contained in:
parent
e0012c3c62
commit
21035001b2
2 changed files with 5 additions and 2 deletions
|
|
@ -738,8 +738,11 @@ HTMLOut.prototype.setData = function(err, sData, sFile, fTemplate)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy the HTML template, and then start finding/replacing tokens.
|
* 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;
|
this.sHTML = this.sTemplate;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
when rotating to landscape mode; by setting only "initial-scale", the width is apparently inferred -->
|
when rotating to landscape mode; by setting only "initial-scale", the width is apparently inferred -->
|
||||||
<meta name="viewport" content="initial-scale=1">
|
<meta name="viewport" content="initial-scale=1">
|
||||||
<link rel="shortcut icon" type="image/x-icon" href="/versions/images/current/favicon.ico">
|
<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 -->
|
<!-- pcjs:sockets -->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue