mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-09-03 20:35:11 +00:00
value conversion error fix
This commit is contained in:
parent
1dfd23f737
commit
afee0d5704
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ const attachClick = (selector, handler) =>{
|
|||
document.querySelector(selector).addEventListener('click', (event) => {
|
||||
const element = event.target;
|
||||
const name = event.target.getAttribute('name');
|
||||
const value = !!+event.target.getAttribute('value');
|
||||
const value = event.target.getAttribute('value');
|
||||
typeof handler==='function' ? handler(element, name, value): null;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue