Archived
frontend: Édition profil + corrections backend
This commit is contained in:
1 parent
3ed605af1b
commit
5d048f3010
11 files changed
+268
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user