mirror of
https://github.com/NickKaramoff/shareon
synced 2025-02-08 15:48:43 +01:00
Use querySelectorAll instead of getElementsByClassName
This commit is contained in:
parent
9a6f39af4a
commit
51a7597235
@ -35,7 +35,7 @@ const openUrl = (buttonUrl) => () => {
|
||||
};
|
||||
|
||||
const initializeShareon = () => {
|
||||
const shareonContainers = document.getElementsByClassName("shareon");
|
||||
const shareonContainers = document.querySelectorAll(".shareon");
|
||||
|
||||
// iterate over <div class="shareon">
|
||||
for (let i = 0; i < shareonContainers.length; i += 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user