Fixed redirect to profile page after going back 1 page

This commit is contained in:
Joey Lai
2017-01-20 16:01:08 +01:00
parent 15a3640eea
commit e17a55e82d
4 changed files with 14 additions and 14 deletions

View File

@@ -0,0 +1,8 @@
function checkLoggedIn() {
if (confirm("You are already logged in!\nDo you want to logout?\nPress ok to logout.") == true) {
window.location.href = "logout.php";
} else {
window.history.back();
}
document.getElementById("demo").innerHTML = x;
}