1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-31 18:50:14 +02:00

script: add check on event before accessing

This commit is contained in:
Kushagra Gour
2018-04-11 10:25:24 +05:30
parent f60b99d0c6
commit ce1ccc3a8d

View File

@@ -2072,8 +2072,10 @@ loginModal, profileModal, profileAvatarImg, profileUserName, openItemsBtn, askTo
scope.openSupportDeveloperModal = function(e) {
closeAllOverlays();
trackEvent('ui', e.target.dataset.eventAction);
scope.toggleModal(pledgeModal);
if (e) {
trackEvent('ui', e.target.dataset.eventAction);
}
};
scope.updateProfileUi = () => {