You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing L27 from var elems = document.querySelectorAll('.sharer'), to var elems = document.querySelectorAll('[data-sharer]'), relieves users from having to add a sharer class to any element they want to act as a share button.
data-sharer is a required attribute for all social sharing anyway, so it can be used to kill two birds with one stone here.
The text was updated successfully, but these errors were encountered:
Changing L27 from
var elems = document.querySelectorAll('.sharer'),
tovar elems = document.querySelectorAll('[data-sharer]'),
relieves users from having to add a sharer class to any element they want to act as a share button.data-sharer
is a required attribute for all social sharing anyway, so it can be used to kill two birds with one stone here.The text was updated successfully, but these errors were encountered: