Spaces:
Running
Running
Update index.html
Browse files- index.html +8 -1
index.html
CHANGED
@@ -90,7 +90,7 @@
|
|
90 |
</style>
|
91 |
</head>
|
92 |
<body>
|
93 |
-
|
94 |
<div class="terminal-window">
|
95 |
<div id="computer-text"></div>
|
96 |
</div>
|
@@ -500,6 +500,13 @@
|
|
500 |
|
501 |
// Run the check when the page first loads
|
502 |
checkLoginState();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
503 |
</script>
|
504 |
<div class="modal-overlay" id="loginModal">
|
505 |
<div class="modal-content">
|
|
|
90 |
</style>
|
91 |
</head>
|
92 |
<body>
|
93 |
+
<button id="forceLogoutBtn" style="padding: 10px; font-weight: bold; margin: 20px;">Force Logout / Reset Session</button>
|
94 |
<div class="terminal-window">
|
95 |
<div id="computer-text"></div>
|
96 |
</div>
|
|
|
500 |
|
501 |
// Run the check when the page first loads
|
502 |
checkLoginState();
|
503 |
+
// Add logic for the temporary Force Logout button
|
504 |
+
document.getElementById('forceLogoutBtn').addEventListener('click', () => {
|
505 |
+
localStorage.removeItem('accessToken');
|
506 |
+
localStorage.removeItem('partnerName');
|
507 |
+
alert('Session data has been cleared. The page will now reload.');
|
508 |
+
window.location.reload();
|
509 |
+
});
|
510 |
</script>
|
511 |
<div class="modal-overlay" id="loginModal">
|
512 |
<div class="modal-content">
|