Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.removeEventListener('click', window.profileCb);
- window.clickCount = 0;
- window.profileCb = function() {
- window.clickCount++;
- console.log('click');
- // One click to open the menu
- // One clikc to click "Download"
- if(window.clickCount == 2) {
- console.profile('my profile1');
- // Pause it quickly after and only capture what we need
- setTimeout(function() {
- console.profileEnd();
- }, 100);
- }
- };
- document.addEventListener('click', window.window.profileCb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement