Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
number-nine committed Jul 4, 2023
1 parent 0b3541a commit 0e4b711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/js/auth/modal-auth/eventsProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const menuAuthRootListRef = document.querySelectorAll('.auth-menu-root');
// const menuAuthRootListRef = document.querySelector('.auth-menu-root');
const themeSelectorRef = document.querySelector('#toggle-theme');

console.log(menuAuthRootListRef);
// console.log(menuAuthRootListRef);

let _theme = 'light';
let _mode = 'signin';
Expand All @@ -36,8 +36,8 @@ onAuthStateChanged(auth, user => {
});

const bindButtonEvents = cb => {
const modalAuthButtonRef = document.querySelector('.modal-auth-button');
modalAuthButtonRef.addEventListener('click', cb);
const modalAuthButtonListRef = document.querySelectorAll('.modal-auth-button');
modalAuthButtonListRef.forEach(elem => elem.addEventListener('click', cb));
};

export const initAuth = () => {
Expand Down

0 comments on commit 0e4b711

Please sign in to comment.