Skip to content

Commit bbce857

Browse files
authored
fix: dashboard contains invalid html for top-level document (#2254)
1 parent e93f63f commit bbce857

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Parse-Dashboard/app.js

+16-16
Original file line numberDiff line numberDiff line change
@@ -184,22 +184,22 @@ module.exports = function(config, options) {
184184
</div>`
185185
}
186186
res.send(`<!DOCTYPE html>
187+
<html>
187188
<head>
188189
<link rel="shortcut icon" type="image/x-icon" href="${mountPath}favicon.ico" />
189190
<base href="${mountPath}"/>
190191
<script>
191192
PARSE_DASHBOARD_PATH = "${mountPath}";
192193
</script>
193-
</head>
194-
<html>
195194
<title>Parse Dashboard</title>
196-
<body>
197-
<div id="login_mount"></div>
198-
${errors}
199-
<script id="csrf" type="application/json">"${req.csrfToken()}"</script>
200-
<script src="${mountPath}bundles/login.bundle.js"></script>
201-
</body>
202-
</html>
195+
</head>
196+
<body>
197+
<div id="login_mount"></div>
198+
${errors}
199+
<script id="csrf" type="application/json">"${req.csrfToken()}"</script>
200+
<script src="${mountPath}bundles/login.bundle.js"></script>
201+
</body>
202+
</html>
203203
`);
204204
});
205205

@@ -212,20 +212,20 @@ module.exports = function(config, options) {
212212
res.append('username', req.user.matchingUsername);
213213
}
214214
res.send(`<!DOCTYPE html>
215+
<html>
215216
<head>
216217
<link rel="shortcut icon" type="image/x-icon" href="${mountPath}favicon.ico" />
217218
<base href="${mountPath}"/>
218219
<script>
219220
PARSE_DASHBOARD_PATH = "${mountPath}";
220221
</script>
221-
</head>
222-
<html>
223222
<title>Parse Dashboard</title>
224-
<body>
225-
<div id="browser_mount"></div>
226-
<script src="${mountPath}bundles/dashboard.bundle.js"></script>
227-
</body>
228-
</html>
223+
</head>
224+
<body>
225+
<div id="browser_mount"></div>
226+
<script src="${mountPath}bundles/dashboard.bundle.js"></script>
227+
</body>
228+
</html>
229229
`);
230230
});
231231
});

0 commit comments

Comments
 (0)