frontend: Édition profil + corrections backend

This commit is contained in:
Divlo committed 2020-04-08 00:47:24 +02:00
1 parent 3ed605af1b
commit 5d048f3010
11 files changed
+268 -18

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
function redirect(ctx, path) {
if (ctx.res) {
if (ctx.res != undefined) {
ctx.res.writeHead(302, { Location: path });
ctx.res.end();
} else {
document.location.pathname = path;
document.location.href = path;
}
}