We were using a custom icon because in the past social-share-button didn't have support for whatsapp. But now that it does, we can remove our custom icon. Note we're using the `_app` suffix because that's the name of the icon meant for mobile devices.
14 lines
371 B
JavaScript
14 lines
371 B
JavaScript
(function() {
|
|
"use strict";
|
|
App.SocialShare = {
|
|
initialize: function() {
|
|
$(".social-share-button a").each(function() {
|
|
$(this).append("<span class='show-for-sr'>" + ($(this).data("site").replace(/_app$/, "")) + "</span>");
|
|
});
|
|
},
|
|
destroy: function() {
|
|
$(".social-share-button a .show-for-sr").remove();
|
|
}
|
|
};
|
|
}).call(this);
|