mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
refactor: Bring lint config back to original strictness
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* @param ids - IDs of the element (empty to retrieve all elements)
|
||||
*/
|
||||
export function getElements(...ids) {
|
||||
ids = ids.length ? ids : [ ...document.querySelectorAll('[id]') ].map(e => e.id);
|
||||
ids = ids.length > 0 ? ids : [ ...document.querySelectorAll('[id]') ].map(e => e.id);
|
||||
return Object.fromEntries(ids.map(id => [ id, document.getElementById(id) ]));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user