Skip to content

Commit dc8546f

Browse files
committed
remove loading class during login popup
1 parent c497909 commit dc8546f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,6 @@ const popup = (...kids) => {
918918
};
919919
let loginOpen = false;
920920
const login = async (reason) => {
921-
console.log('login needed', reason);
922921
return new Promise((resolve, _) => {
923922
const origFocus = document.activeElement;
924923
let reasonElem;
@@ -946,6 +945,7 @@ const login = async (reason) => {
946945
requestPasswordReset();
947946
})))))));
948947
document.body.appendChild(root);
948+
document.body.classList.toggle('loading', false);
949949
username.focus();
950950
loginOpen = true;
951951
});

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ const popup = (...kids: ElemArg[]) => {
6363

6464
let loginOpen = false
6565
const login = async (reason: string) => {
66-
console.log('login needed', reason)
6766
return new Promise<string>((resolve: (v: string) => void, _) => {
6867
const origFocus = document.activeElement
6968
let reasonElem: HTMLElement
@@ -133,6 +132,7 @@ const login = async (reason: string) => {
133132
)
134133
)
135134
document.body.appendChild(root)
135+
document.body.classList.toggle('loading', false)
136136
username.focus()
137137
loginOpen = true
138138
})

0 commit comments

Comments
 (0)