Change sponsorClickHandler to standard function declaration (#6502) [deploy]
This commit is contained in:
parent
731b89ca26
commit
a08d665afa
1 changed files with 6 additions and 4 deletions
|
|
@ -1,6 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
const sponsorClickHandler = event => {
|
||||
/*
|
||||
* kept as a stand function so it can be loaded again without issue
|
||||
* see: https://github.com/thepracticaldev/dev.to/issues/6468
|
||||
*/
|
||||
function sponsorClickHandler(event) {
|
||||
if (event.target.classList.contains('follow-action-button')) {
|
||||
handleOptimisticButtRender(event.target);
|
||||
handleFollowButtPress(event.target);
|
||||
|
|
@ -13,7 +15,7 @@ const sponsorClickHandler = event => {
|
|||
event.target.dataset.details,
|
||||
null,
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
function listenForSponsorClick() {
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue