Skip to content

Commit 476d46d

Browse files
committed
refactor: simplify popup-close.html by removing unnecessary styles and timeout
- Removed inline styles and the message div for a cleaner HTML structure. - Streamlined the window closing logic by directly calling window.close() without a delay.
1 parent b24656b commit 476d46d

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

src/frontend/public/auth/popup-close.html

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,11 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>Authentication Complete</title>
6-
<style>
7-
body {
8-
background: #18181b;
9-
color: #fff;
10-
font-family: sans-serif;
11-
display: flex;
12-
flex-direction: column;
13-
align-items: center;
14-
justify-content: center;
15-
height: 100vh;
16-
margin: 0;
17-
}
18-
.message {
19-
margin-bottom: 2rem;
20-
font-size: 1.2rem;
21-
}
22-
</style>
236
</head>
247
<body>
25-
<div class="message">Authentication complete! You may close this window.</div>
268
<script>
279
localStorage.setItem('auth_completed', Date.now().toString());
28-
// Close the window after a short delay to ensure message is sent
29-
setTimeout(() => {
30-
window.close();
31-
}, 100);
10+
window.close()
3211
</script>
3312
</body>
3413
</html>

0 commit comments

Comments
 (0)